In the past, fire companies would show up and demand payment before putting out fires. If a payment couldn't be made, the company might negotiate the purchase of the burning property at a steep discount.
Later, insurance companies hired brigades to only put out fires on insured properties. Fire companies might have fought or sabotaged one another in order to win the right to put out a fire and get paid for it.
While it isn't perfect, and it's often underfunded, I definitely prefer the system we have now.