How can I not fart during sex?

I was having sex with my boyfriend last night, when all of all sudden farting noises started to come out of me, and I know I wasn't farting it was just his penis rubbing again in my vegina, but am I the only one? And if not how can I prevent that from happening again? Because I felt kinda really embarrassed 😩