How is the ability to use chakra alloted?
The only people who were born with chakra are Kaguya's descendants. However, people got their chakra from the Rikudō Sennin when he created ninshū to make people connect to each other.