It is said to have been built at the site where Joseph, Mary, and the infant Jesus took shelter after they fled to Egypt from the Holy Land.
They took shelter there for over two weeks until they found somewhere safer to stay.