Sometimes they just happen, just like a cold.
It depends on your sex
if they happen over and over again there is something majotly wrong.
If it just happened once its probably not a big deal.
You should see a health care provider if you are worried.