To shut someone in means putting a person or an animal in an enclosed place so that they can't leave.
Example sentence:
- You shouldn't shut in your dogs for too long. If you do, there will be unpleasant consequences.
A shut-in is a recluse who avoids contact with the outside world by staying indoors most of the time. In Japan, such people are called hikikomori.