America’s need for Asian allies in its Cold (and occasionally hot) War with communist countries led to its support with various military governments since WWII.
Thailand joined the American dominated SEATO (Southeast Asian Treaty Organization) in 1954, after the French were defeated by the Vietnamese at the battle of Dien Bien Phu.