I would say you learn how to lead by serving. By interacting with others. You can’t keep to yourself and claim to know how to lead people when you get a position of power.
You need to know your personality type, do self reflection, know how to communicate with people of different levels.
Join associations like JCI or Toastmasters international.
Learn how to network- its building relationships not becoming a parasite and follower
Also get to the point where you know yourself and your why and your purpose so well that you won’t be tempted to deviate nor be confused when people project their ideas and ideals on you