Period was irregular

So it’s been about 9 months since I got my first period and my last one was about a week early. Can anyyyyyone please explain why it was so irregular?

It’s never been off by even a day so I don’t know why this was suddenly off

And I haven’t been stressed lately and I haven’t gained or lost weight or worked out a lot or anything but if you respond, thank you