Traditionally in fantasy, rangers are protectors of civilization from what roams out in the wilderness. They are hunters, skirmishers, law enforcers, scouts, and do other jobs that kings and local governments need.
I don't know why they keep making the ranger as a protector of nature, that's...