What the manufacturer makes it easy to do and what you can get in legal trouble for are different things.
Do you want the state to use men with guns to force everything with a microcontroller in it to also come with an SDK? I'm basically a socialist, and even I think that's ridiculous overreach.