The problem with software is that software doesn't care about where it's built. Jurisdictions need to balance safety and quality regulation with the fact that you can just make the software somewhere where the regulations aren't so onerous, and most software is made very far from the place where it is used.
If you're making a bridge usable by residents of Springfield, that bridge has to be in Springfield, and it has to be made by Springfield engineers following Springfield laws.