From earlier inret, from Middle High German inrent. Probably equivalent to inneren (dative of inner) with paragogic -t.
innert [with genitive or dative]