You are right that there is some randomness but they're not
that random. There are warnings about hurricanes. Floods hit low-lying areas. Earthquake risk varies a lot based on region, soil structure, and so on. Some structures are relatively safe and others aren't.
But I think they're a good example of things that we can't always prepare for as individuals - it requires a group effort and that involves politics. There is a lot of resistance against, for example, attempts to stop rebuilding in known flood zones.
I would say that plane crashes are a good example. We can talk about the odds of being in a plane crash but they're not really random - there are always reasons. Also, there is a reason why commercial flights are considerably safer than driving. It's not because flying is inherently safer, but because as a society we put a lot of effort into making them that way.