why would he do that

The guy that used to be my friend left me a month ago for his girlfriend. I do t k ow why would he just leave me