The first instance is difficult to fix as crime can often involve substantial losses to people and often there's no route to getting a refund.
The broken water pipe should be covered by buildings insurance, but I can imagine it not being covered by some policies. Luckily a broken water pipe is likely not as expensive as not having e.g. third party liability protection if part of your roof falls off and hits someone.