Mysterious Entrance of a Baby Bird in the House

I woke up to my Bengal playing with this baby bird who was scared to death. How he got in the house I don't know but getting him to fly out wasn't easy either. I finally got him in a small trashcan an held it up to the window until he flew away.