The workers are wrong, then. That is not the purpose of the H1B. Anyone who thinks it should lead to a green card should be barred from getting the visa.
If it really was intended that H1-Bs not have immigrant intent then there was a legal framework already in place to ensure that. Most likely it is you that is incorrect about the purpose of these H1-Bs.
But it is still a non-immigrant visa that does not lead to permanent residency or citizenship, but requires you to qualify for, apply for, and secure an immigrant visa if and when you want to become an immigrant rather than a non-immigrant worker.
That's wrong and it's wrong that it worked for you. You should leave.