Not sure if this is a bug?
I have some products with visibility set to ‘hidden’ but they’re still counted in the total products for that category which also causes the page to unecessarily paginate (when it should just show on one page when the total visible products is less than the total per page setting)