So what if you're temporarily in the US on a tourist (B1/B2) visa? Or on NAFTA status? Or as a non-resident using H1-B (which is dual intent)?
Non-resident alien doesn't mean illegal immigrant at all. As the name implies, it means you're a non-citizen who is also not residing in the US.