这是介词的固定用法,可以特别记一下。
on表示在左或者右侧
on the left/right 在左边 / 右边
而in可以表示在……中,所以可以表示在……的中间。
Leave the key in the lock.
把钥匙留在锁孔里。
in, on, to  加the➕方向的用法:
一、“in the + 方位名词”指的是小范围在一个大范围的里面,表示“在某范围之内”,强调两者的包含关系。
如:
Beijing is in the north of China. 北京在中国的北部。
二、“on the + 方位名词”指的是一个范围紧挨着另一个范围,表示“两地接壤”,强调两者为相邻关系。
如:
Korea is on the northeast of China. 朝鲜在中国的东北面。
三、“to the + 方位名词”指的是一个范围和另一个范围之间隔段距离,表示“在某范围之外”,强调两者是远离关系。
如:
Japan is to the east of China. 日本位于中国的东边。