Confused

Today I got my period about three- two days early but I was bleeding brownish then it got to a lighter red so just out of curiosity i took a test and it said positive 😭 how can that be if I hadn’t had sex since June 11th -13th (during ovulation) and got my period on July 3rd ...