Quite true. But that's fish taking advantage of a particular environmental effect to their advantage. They're not doing it simply because they feel really nice because of all that lovel flood water. They breed when it's best to begin the process of finding a mate and begining the process of raising fry.
It's all about future practicalities not because it feels good.
Fish aren't like women who like the perfect setting in terms of roaring fires and candles before engaging in lovemaking, fish spawn when they need to.