There is a market for home inspectors to prevent the purchase of a property with issues.
I have yet to hear of anyone having a civil or criminal suit taken against them due to issues with a property (not saying it hasn’t occurred—just that I don’t know of it occurring).