Here's why:
* Gerund: A gerund is a verb form ending in "-ing" that functions as a noun.
* Gerund Phrase: A gerund phrase consists of a gerund and any modifiers or objects that go with it.
In this case, "singing" is the gerund, and "rain" is the object of the gerund. Together, they act as the subject of the sentence.