I am taking a Japanese Writing class and this is the topic that I picked for my final paper. I have found all of the Kokuji kanji (or at least I think I have), but I am on a more important search. My question that I would like to find out the answer is:

Why was kokuji created? Why did they need to have kanji for those words? Why couldn't hiragana and katakana do the trick?