Being liked as a leader is useful, but…
As a normal human being with an ego, you probably want to be liked by other people.
Just because you might also be a leader, that doesn’t mean you’re not a person who probably wants to be liked – even by the people you’re leading.
However, while being liked by people is a positive outcome for a person, it’s not the goal of leadership.
As a leader, being liked is only useful if you can use it to get people to do things for you.
If you’re a leader that’s just trying to be liked because you want to be liked, you’re aiming for the wrong goal.