Confusion on queefing

Madison

So weird but I woke up like 5 days ago on my first period day but anyway I woke up and my vagina farted and I looked it up and it said it’s called queefing but I thought that would only when having sex. So can someone please explain this???