This question already has an answer here:
From what I know, katakana is used for writing foreign words, scientific words, onomatopoeia, emphasis, and food on some menus in Japan. Also the sounds in the hiragana and in the katakana syllabaries are the same. So whyy do people even use katakana why not write words with a foreign origin, or scientific words, etc. in hiragana?????? I'm a beginner in japanese (started two months ago) so if the answer should be obvious/well know then sorry. I tried googling it but didnt find anything useful.