Some one explain to me

I took a pregnant test it came back with a faint line but than two days later i got my period wtf pleaseeeee explain