The joke is a play on the phrase 'have the floor.' Typically that phrase is used to say that a person speaking has the stage or platform to speak on.  The janitor cleans the floors, and so they would always 'have the floor'.
When the janitor wanted to take up public speaking he always had the floor .