Leaders develop proficiency from a lifetime of experiences. Many of these experiences occur initially upon becoming subject matter experts, such as IT technician, tax attorney, or financial advisor, to name a few.
Your leadership expertise develops as an outgrowth of these experiences. Keep in mind, though, that most people are not trained in what it is to be a leader. Many stumble into leadership and do what they think they are supposed to do in this new role.