Why do people say having kids helps with painful periods when doctors say it's not a cure?

Hi, I'm 27 and was recently diagnosed with adenomyosis, suspected endometriosis, and fibroids (all seen on MRI).

Ever since my diagnosis, friends and family keep telling me, "Oh, I used to get painful cramps too, but having children helped, and it all went away." I know they mean well, but it's starting to frustrate me, especially since the research I've done shows pregnancy isn't a cure. (But there's a huge lack of awareness about these conditions in my country.)

My question is, why do so many women say that having kids helped their painful periods when doctors say it's not a cure? Can endo or adeno really go away just from having a baby?

Sorry if this sounds like a silly question — I'm still learning about all of this. It's just really annoying when everyone keeps telling me that having a baby will fix everything.

EDIT

Wow, thank you so much for all the responses! I didn’t expect this much support in helping me understand. I've read every single comment and It's been so helpful hearing everyone’s experiences. I’ve realized it’s definitely not a one-size-fits-all kind of thing.

Sending love and positivity to everyone dealing with these horrible illnesses