Spells fit the D&D archetype.I’m fine with access to magic, especially magic that isn’t just spells. It’s spellcasting that doesn’t fit the ranger archetype.
The issue again is outside of video games and anime, ranger characters are in low magic and no magic settings. They only don't use spell in those setting because spells don't exist or are hard to get in the setting.
Jon Snow would be shooting lightning arrows at the Night King and reviving his buddies if Westeros had usable magic.