While it’s certainly accurate insurance is a regulated industry, nothing you listed explains why it’s a good idea to allow government to set or approve rates vs. ameliorating those social concerns through other means.
In the US, it's a requirement of mortgage lenders. This makes it less of a legal requirement and more of a de facto requirement, as most homes are purchased via mortgage in the US.