Two different meanings.
On time = the correct time. "The meeting starts at 2pm, please be on time." (not late)
in time = not to late to do something "I was late for the meeting but I was in time to hear what John said."
- For Teachers