Well I dunno about breeding since I've never done it...
but I will say that my females will get themselves into situations similar to that (except not that extreme).
Like the other day.. .my runt girl Squeegee got on top of the heater and was partially out of the water. But she wiggled herself back in. I think she was just looking around and thought it would be a good idea to do it? *shrugs*
Also there is a plant in their tank w/ alot of long leaves that float on the top. They're always shimmying themselves on top of the leaves getting out of the water. The leaves aren't large though so they're back in the water quickly. I dunno why they do it, maybe to see if they can? Or they think it's a quicker way to go *shrugs*