Don't think they're pairing up, the male would surely be on the females back and they would be looking about for a egg laying sites. Tree frogs and a lot of frogs can be quite cute and cuddle up or sleep right next to eachother. Maybe safety in numbers?