It is the law, you have to have one. Pushed through by Home Depot and California Alarm Association.
The rationale was that 30+ people die every year from poisoning (the fact that it’s mostly campers using heaters in their tents made no difference). That, and $100MM+ of profit.