It's the only cantrip that is on par with weapons, and that is almost certainly as intended when you consider how limited the regular spellcasting the warlock has is.
But I don't think that's the reason for the ruling, I believe that the D&D designers wanted spell and weapon attacks to use the...