The government has literally prevented cars that prevent you from blinding another car on the road from coming to the US market. Cars come in with active LED arrays and they have to be disabled to sell in the US.
https://www.newsweek.com/nhtsa-roadblocking-headlight-technology-that-could-save-lives-1811354
You’re confusing iOS, where you are in a walled garden, with macOS, where you can just do whatever the hell you want (There’s a recovery partition you can boot to where you can disable just about every bit of security that’s not hardware much like booting to grub in Linux)