Insurance in Switzerland

Isn’t home insurance mandatory as well? Or is that only a requirement from regies when you rent?