H1B is explicitly a dual intent visa.
It’s a non immigrant visa but also a pathway to citizenship.
And this is not just an abstract thing. There are, for example, very specific tax implications of this.
The dual intent nature of the H1B visa means the U.S. government requires H1B holders to pay Social Security and Medicare, precisely because the dual intent nature implies that they will be able to utilize those entitlements in the future.