postpartum problems

I'm 7 weeks pp and I've been cleared for sex, well we have been doing the deed for the past 2 weeks since I've been cleared, and I've gotten 2 bladder infections... why is this? has this happened to anyone else?