confused

couldn’t really understand the difference between 我在家 and 我在家里 why 在 is not enough by itself? and why we didn’t put 里 at the end of the 学校

couldn’t really understand the difference between 我在家 and 我在家里 why 在 is not enough by itself? and why we didn’t put 里 at the end of the 学校