I think I was pregnant

So I took 3 pregnancy tests in mid 2019 and it said that I was pregnant. Two blue lines appeard but the father was not someone I wanted. Fast forward to another month and I wasn't pregnant anymore. Any clue what might've happened?