The Hebrew word ger (stranger) could mean one of three things: There was the person who literally came from afar,
There were converts to Judaism,
and there was the ger toshav: a Gentile who didn't convert but repudiated idolatry.
The Torah commands us to treat all of these categories with help, welcoming and kindness.