Why isn't safety tech mandatory on all vehicles yet?

A lot of car advertising touts accident avoidance technology – but many of those features are only available as expensive add-ons or only in the top-of-the-line trims, not in the base and mid-range models. If this technology really does save lives, why isn’t it required by the government on all new cars? – Joanna, Toronto