"Non-immigrant visa" means "getting this visa doesn't make you an immigrant". Which is true for the B2 (it makes you a tourist) and the H-1B (it makes you a temporary worker).
It shouldn't be confused with "intent". If you show intent to immigrate when applying for a B2, you can be denied. That's not the case for an H-1B.