I have no problem with breeding dogs as long as it is done ethically, as in the dogs are well cared for, healthy, free of extremes, bred to be able to work if a working breed and care is taken to place the pups in suitable home.
This.
As for profit... Based on a breeder I know, I would say her last litter definitely turned a profit, even after allowing for the stud fee, plus a share of health tests the bitch had before she was bred the first time, plus scan, some extra kit for the puppies, plus any vet fees, flea and worm, plus registration, plus lots of extra food and laundry. And her time. A LOT of time: with the pregnant and delivering bitch, with the puppies, dealing with enquiries, meeting prospective owners and (during Covid) delivering puppies. You also need to think about the time and cost of proving the bitch in work and trials - the training, the petrol, the entry fees, the overnight accommodation. It tots up very quickly. Any profit the breeder made was probably fair recompense for her (highly skilled and experienced) time.
But, had there been a c-section and a small litter... The potential is there to make some money, but there is a considerable risk of making a loss. Emergency midnight c-section with only 3 surviving puppies of 6, when you had hoped for 8, so you only gross (say) 2.4k and now have the section to pay for as well as the stud fee and everything else?