How old are you?
If you are an adolescent who has just started to menstruate, that could be the reason. The menstrual cycle can be irregular in the early years.
If you are in your 50s, this could be a sign of early perimenopause. As hormone levels fluctuate, the menstrual cycle becomes irregular.