He wrote it to his friend, Charles Diodati and it's an answer, in Latin verse, to a letter from Diodati apologizing that his poems were not as good as usual because he was leading too much social life.