One of the main uses of the preposition into is to indicate movement toward the inside of a place.
The children jumped into the pool for a swim.
I drove the car into the garage.
In to is the adverb in followed by the preposition to.
He turned his homework in to the teacher.
I handed it in to the police.