Pelvic cramps

4 days ago I got a really bad sharp cramp and got it 4 times each only lasting a minute and I know I'm not pregnant why did this happen