This is not true. An H1B employee can not apply to become a permanent resident ("green card") based on their H1B employment itself.
As far as I know, the only way to self petition for an extraordinary ability (EB1) based immigration, but that probably applies only to a small percentage of H1B workers. The rest are bound to their employer applying to grant the employees immigration benefits, which the employer may or may not do.