Trump himself is the one who called for a ban on Muslims entering the US.  He said, "Donald J. Trump is calling for a total and complete shutdown of Muslims entering the United States until our country's representatives can figure out what the hell is going on."  The populations of the 7 countries named in the executive order consist primarily of Muslims.  This is the first step that Trump is taking to fulfill his promise.