The actual product seems not very sophisticated. The most basic three-chord format is the foundation for many of our favorite songs.
You don't get good at this through years of school as with becoming a medical practitioner. It is helpful to immerse yourself in music.
I'm thinking of the song "Hey Jude" (1968) and how simple it is. "Jude" was the name of one of the characters in the Beatles homage movie "Across the Universe."
The song "Hey Jude" is really more of an anthem. It may be the prime signature piece from Paul McCartney's career.
From restrained to raucous