Country music hasn’t always been the soundtrack of the Republican Party, according to music historian Lester Feder. He says President Nixon cemented the relationship during his years in the White House, and there’s a country album to prove it called Thank You, Mr. President.
NPR had some good bits about this.
https://www.npr.org/2007/02/18/7484160/the-conservative-evolution-of-country-music