It appears this is a result of the harmonization of laws between Mexico, Canada, and the US.
Repairing phones and installing custom ROMs are illegal in us/canada?
However, the Copyright office get to make official exceptions to the law and they made an exception for jailbreaking a phone. I'm not sure about repairing or installing custom ROMs. Those might fall into different categories.