Cramps when I’m not on my period

Sometimes I get cramps about a week after my period has ended, this has only happened the past couple of months. It isn’t bad, but it’s just confusing because I don’t know what’s causing them. I’m on the pill if that makes any difference. Anyone have any ideas of what it could be?