It's not just country. People have commented on the "Nashville sound" being formulaic for pretty much the last 40 years or more. In a similar way Motown had a formulaic approach at one time, disco, even blues. Here in the UK there was the "Liverpool sound" of the early and mid 60s.
Going further back, the "tin pan alleys" of New York and London had their formulas as well.
The explanation is pretty simple. In part it is because the recordings are made by a small set of people and the music is played by a small set of people, somthe same people keep turning up again and again, and if a newcomer wants to get on they usually have to fit in with the existing people and style unless they're someone like Hendrix who can almost ignore the rule book (but still took guidance from his producer and engineer).
On another level its' to do with writing, arranging and making a commercially successful product.
If a particular song is a hit then people looking to make hits will try to emulate what they think made it a hit. If some of those songs become hits themselves then other will try and hone in on what they all have in common and emulate it. An old bit of advice is "if you want a hit, write something very much like what's already in the charts". The charts get airplay and new releases that sound similar stand a good chance of getting airplay, if plugged well, because they already sound "hit like". And the airplay can make them a hit and the whole circle goes round and round.
Until something comes along that tears up the formula and is a hit despite that or because of it. At which point the people who's job it is to care more about making money from music than being creative will go chasing after the "new thing". In other words it's the "business" motivated part of the "music business" in action.