Look at the first group and then look at the second group. What's the difference? If you really can't tell, you're beyond saving.
I'll hold your hand...
The banned countries are active warzones where ISIS or ALQaida operate. Or some off shoot of those two. The last is Iran: state sponsor of terrorism.
The non-banned countries are functioning economies where war is not over taking the land. Are they necessarily free and democratic nations, no, but who are we to judge now?
What would banning non existent refugees from rich middle eastern nations do? These countries don't even allow in refugees.
Take off your tin foil hat. Jet fuel doesn't melt steel beams.