In this context (and the usage is not always consistent) it's probably easiest to think about leadership as an activity and (people) management as a role. If you are not formally responsible for some aspect of other peoples jobs and career you are not "managing them" but you may be leading them (e.g. as a senior engineer, or mentor, or in terms of a project design, etc.).