(Not a Teacher)
If your question is why 'in' is used here rather than some other preposition, my only advice is that it's best to just accept that that's the way it is in the English language.
I'm learning a language myself. Not everything makes sense, but I accept it for what it is and memorize it as best I can.
Student or Learner