Periods after coming off the injection

Heather
Hi
I came off the injection in July and had my first period on the 22nd October (6 days) and then a second on the 21st November (5 days) Not sure what's happened but I've had nothing since and I'm not pregnant. Why would they start again and then stop? Xx