As a buyer, you must include a home inspection clause in your purchase agreement, which will let you back out of the contract if the inspector discovers unexpected problems with the house. (homebuying.realtor)
On the flip side, you can buy companies where unexpected problems arise but you make money because the price you paid provided a margin of safety. (arborinvestmentplanner.com)
One of the biggest reasons to have insurance, besides being required by law, is to protect yourself and your family from unexpected problems. (blog.agentinsure.com)