The convention band was unable to find a song that identified Kennedy with his home state and on his way home, Wells wrote The Great State of Massachusetts.
The band was searching for a song that would connect Kennedy with his home state, but they couldn't find one.  Wells wrote "The Great State of Massachusetts" as a result.