What is that condition called where some people are scared to leave their house?

Agoraphobia . It is a treatable condition, but can be very disabling.
Agoraphobia. Sometimes it is described as a fear of the outdoors, but your description is better.