Positive 9 days before my period!!!

I got a faint postive yesterday and today it's a bfp, today I'm 8 days away from my period.

Has anyone else had this? Was it just that you ovulated earlier? I've had 2 miscarriages over the year and a half we have been TTC.