Wondering!

If my period came 2 days early, what’s does that mean? Does it mean I ovulated early or? I always thought, your ovulation is what cause a period.