But if there's a law that says cars have to do this, yes, of course. Or rather, we can get angry at the law or the legislator or the system or whatever, but it seems silly to get angry at the carmaker because they didn't arbitrarily break some laws that you personally don't agree with.
Which is also why I don't really understand the scare quotes around "unlawful" in the title.
If the carmaker built such a feature on their own without any obligation, or if the feature went beyond what the law mandates, that would be something else.