Janitorial jobs vary by location so depending on where you work or would like to work, you may need to be at least somewhat physically fit and knowledgeable on a variety of subjects including but not limited to use of machinery; cleaning processes associated with spills, vomit, toilet leaks, everyday upkeep, etc.; and various maintenance work. These may or may not be included in on the job training.
Should you want to go into a janitorial field, you should be adept at completing the assigned tasks in a timely manner and documenting planned and performed activities-- i.e., you should be able to organize yourself and have good time management skills.
If you're still in high school, taking courses like math and shop can be beneficial as shop can help with repairs and at least a basic math comprehension is always a good call. janitor career career-advice
I found these helpful in providing you with a more in-depth answer: