Infection after c section

I had 2 csections and two healthy beautiful girls. The first was an emergency csection and I still believe it was because of the hospital I went to. The second was planned and everything went smoothly at a different hospital. I got a really bad infection after the second one where the wound opened and had to be re operated on 17 days after. I had a wound vac for about 2 weeks after the operation and I healed pretty quickly. Neither doctors nor and medical staff could have explained why I got that bad of an infection even after the fact I had a visiting nurse check my wound 3 times after I delivered. I am very happy and contented that I have 2 kids and I'm lucky to be alive. Anyone ever had that experience yet want another baby  but just to scared to go through that all over again.