Why are guys like this!?

Why do dudes tear down their baby mothers but will make the next chick feel beautiful, special, etc?. I’ll never understand he doesn’t ever have anything nice to say about me but will uplift someone else. It’s like he doesn’t want me to feel good about myself.