Groin pain?

I’m 9weeks postpartum and have groin/pubic pain. It usually happens early morning when I’m getting out of bed, it’s really bad I remember it happening during pregnancy. Why is it still happening considering I didn’t even have a vaginal birth?