It's not that different from all EU states each having their own criminal codes. Of course, there is no U.S. state as large as the UK, France or Germany, but you have multiple European states the size of some American states.
Population wise the big EU states are much bigger than the big US states. Aside from that: You are right and it makes total sense to unify criminal laws and prosecution in a borderless area.