Companies exist at the pleasure of societies (aka governments), so those societies have literally every right to tell those companies what they can and cannot do.
I guess you also think it's bonkers that car makers are required to put seatbelts in their cars.