Might be a bug in Magento but on a project, I noticed some URL rewrites still existed for disabled products pointing to categories that had been removed. (Magento is 2.2.7 so update is needed anyway, only not clear if the URLs will get cleaned up after the upgrade)