There are three possible causes. One is physical, a deformity of some kind such as a cleft palate. Another is neurological, where damage to nerves in the face or throat impairs the ability to form sounds properly. The third is training and exposure, which is the one you can retrain. It also is the source of accents.