From Middle English wherin; equivalent to where- + in.
Practice speaking and memorizing "wherein" and many other words and sentences in English.