It’s because you want them to like you. The downside of this is you can end up so focused on yourself and how you are coming across that you aren’t really listening to what they are saying. Then it’s harder to connect with people.
It’s actually better to focus on what the other person is saying and WHY they saying it.
Instead of worrying about how you are coming across, actually listen to what they are saying and try to understand their motivation for doing so. Then you can respond accordingly.
For example:
1. Are they joking/bantering/using sarcasm? You can respond in kind.
2. Are they pissed off about something? Acknowledge what is bothering them and let them vent a bit.
3. Are they excited about something? Keep the conversation on this fun topic for them.
And so on…
But, yeah, I’ve been guilty of what the OP mentioned in the past. But I’m now working on improving my active listening skills.
To add to this, one could become more interested in
why the person thinks the way they do, without the motive of trying to change their thinking or behaviour.
Become curious about people.
About how their mindsets and beliefs overlap and differ from your own, from other people you've met, and so forth.
(This applies to dating in the sense that once you better understand the person, which can help you better connect & appreciate them ... or, in the opposite end of it, filter out people who aren't good for you).