Positive Preg test without having sex

I took a pregnancy test and I haven't had sex in like 5 months (I tested a month after having sex an it was neg) The test I did came out possitive, like solidly possitive. Bright blue lines. 
I have a doctors apt next week but why has this happend? I have unregular periods too.