As far as I understood, it was a innate ability Kurama was created with.
It's just an innate ability Kurama was born with, just like how all of the other tailed beast have their own innate abilities.
What do you think?