It was added to determine if the KCursorSaver header should be installed [1] based on the version of KGuiAddons. After the required KF5 version was increased to 5.73 [2] the check wasn't removed.
[1] ec2e44f2 [2] 85943270