The number of pages with Flash content was also massive for many years. There must be some discipline to remove things from the web platform or it will die.
XPath predates CSS selectors being exposed to JS, and it is absolutely clear that XPath had its best shot to move from niche to mainstream over a decade ago and it didn't happen.