Actually, that logic works for dragons as well. Just don't build your houses anywhere near its territory. If it decides to fly and pawn you, you just run, pray, and/or give up.

The same applies to catastrophes. Typhoons, earthquakes, tornadoes, etc. claim many lives every year even if humans try their best to avoid and prepare for them.