by default, a product page that is showing a category will show the products contained in that category /and/ all sub-categories, unless the page is set in the admin to show specifically just this category. The same is true of searches.