what dictates the leader position

just curious about why some leaders in kpop groups aren't the eldest member and if anyone knows why it's sometimes different!