The assistant's remark was a bit daft- "they only breed if they have to" as the purpose of every living thing on the planet is to breed.
However, what they most likely mean is the observation made of many species of animals and plant that they will sometimes breed if under poor or adverse conditions.
The thinking behind this goes like this..
If the parents are threatened, they 'write themselves off' and put all their remaining energy into passing their genes on to another generation. Nothing is more importatnt to them that passing on their genes and they will even kill themselves in the process.
Salmon do this all the time. They die just after spawning having spent all thier energy getting to the spawning grounds.
You can get spider plants to produce 'spiderlings' by keeping them in a pot that's too small. The plant produces babies so that it's genes 'escape' the adverse condition in the pot.
This behaviour is known as 'The Selfish Gene' If it interests you, you can read all about it in a book of the same name by Richard Dawkins.
__________________
If you've checked your water and it's fine, then I doubt they bred 'because they had to'.
I would suspect they bred because they were happy and wanted to, and one died from a congenital defect which the stress of breeding triggered.
Sorry for your loss, and welcome to the forum.
