It does matter, because the phyiscal keys themselves are literally in different places.
Comparison:
https://www.youtube.com/watch?v=wt1DL1fO6Zs
Note that weird abomination of a backslash key around the enter key on the US keyboard.
There's no way to just map the US keyboard to the UK one.