It got created the same way as everything else, I don’t know. It was always able to infect our bodies, and it was always apadting. People have helped it to adapt too, by using antibiotics, the weaker viruses were weeded out, and the stronger ones became the norm. If your asking how it was created, then I guess God, so that it would do the same to us, weed out the weaker ones.