Just to clarify rochester's answer somewhat, when a person learns to talk they are influenced by the way people in their vicinity talk. So if a person learns English in Britain they will have a British accent, whereas if they learn to speak English in the US they will have an American accent.