Frogs croak for several reasons. The loudest frogs are males and they’re trying to attract a mate. In addition, both male and female frogs can croak or ribbit to mark territory or express pain.