When you wanted to shop, you went to the mall and confined your search to the stores you found there.
The confines of the mall limited you to what was there.
The mall was only one of many places you ended up shopping at.