Why countries share calling codes
Some numbering plans cover multiple territories. The +1 plan includes the US, Canada and several Caribbean regions.
Practical steps
Look at the national destination code rather than assigning a country based only on +1.
What to remember
Use the country directory and validator together.