Manual:$wgCountCategorizedImagesAsUsed

Details
On Special:Unusedimages, consider images "used" if they are put into a category. Default ( ) is not to count those as used.