Because, unlike bridges, software can easily be bought, including from countries that don't have such regulations.

Governments can certainly regulate imports.