John Lennon is best known for his singing and songwriting for the Beatles during the 1960s.
What was John Lennon's profession?
He was a musician.
John Lennon was a musician because he wrote songs and sang for the Beatles. He may have been a producer, engineer, or publisher as well, but we wouldn't know these things from reading the given sentence.