They are grown on farms and with massive containers of water so water quality is higher, they can feed foods to condition them for breeding, and with a temperature change can easily trigger a spawning event. Honestly I don't know exactly how they do it with some species. For many though it is a matter of putting a lot of them together, conditioning them for breeding, then simulating their natural breeding trigger (in many cases a shift from the dry season into the wet season).