This is for parity with the server, and there is at least one practical use case. GuidedTour uses this class to detect what kind of link it is for analytics/EventLogging purposes.
Update
There is a bug in the current implementation as a result of the patch merged here.
Please see comment T267464#6625790