AITA for not lying about wetting the bed and embarrassing my parents?

I made a Throwaway so this can’t be traced back to my main account lol.
Anyway, I 18f had a weird week around Christmas where I was having a lot of nightmares and interrupted sleep. I think what happened was that, when I did fall asleep, I was sleeping really deeply, because I woke up having wet the bed.
This was a thing I used to do when stressed when I was little and my parents always shamed me for accidents. Even during the day, they seemed to view me needing the bathroom as a personal inconvenience. So, anytime it happened, I set an alarm to wake up early so I could do laundry and clean up before they noticed anything.
I have a couple friends I’m really close with and we were talking about how we’re all really stressed with college applications. One of my friends admitted her hair is falling out from stress and we went around sharing more and more embarrassing things that have happened to us recently until I finally said, jokingly, “Don’t tell anybody but I think I got stressed enough that I wet the bed.”
It turns out that one of my friends told her mom because she was worried about me and her mom is a doctor. Which is sweet but her mom called mine and now my parents are really angry at me for embarrassing them by keeping a secret from them. I told them I was embarrassed and afraid they’d punish me and they said “You must not be that afraid because you’re telling other peoples’ parents.” Except I trust my friends and honestly I trust their parents too, my friend’s mom didn’t yell at me and when I went to her house she was really nice to me.
My parents have no told me I’m not allowed to see that friend outside of school until I apologize to her mom for lying. They told me to say I was lying for attention. Except I wasn’t and I’m refusing to start lying now. I don’t mean to broadcast on the internet that I wet the bed because I feel kind of like a baby, but I did, and I think it’s my choice to tell whoever I want as well as to tell the truth. AITA?