I used to care for a tree frog with a croak I could mimic. Anytime I was nearby I'd do it and set them off in response. My understanding (which is limited and like 12 years ago) was that I had a male frog who was trying to one up me in response so he would get all the mates