First it is a male. That song do it to reproduce.
They do it to attract females to puddles.