It "happens" but then ....
Are these houses truly built on SAND without forethought? Or did something shift around that wasn't anticipated?
Here's another example of a building that fell over
in Shanghai, China. It wasn't built on sand. It was built on "rock" ... on concrete pylons. They just made the mistake of digging out a lot of dirt on one side of the building and stacking the dirt on the other side.
The house you showed
, apparently didn't fall because of being built on sand; it fell because an ocean surge knocked it off of its moorings.
So.. I mean ....
It's more or less a metaphorical expression -"don't build your house on sand." Anyone smart enough to PLAN and build an actual house is also going to take calculated care to anchor that house to something much deeper and more solid than surface sand, saturated by water.
build an outhouse or temporary shack on beach sand but if it tips, no big deal.