Good tech companies pay employees higher than what is listed in the filing, they just don't want to divulge how much they're paying in public records. This is totally fine, there is nothing illegal about paying more.
Mediocre companies (or good startups who aren't considering this stuff too deeply) file with the exact salary.
Scam companies pay below what they filed (illegal).
There is an important caveat here. H1B filings only includes guaranteed compensation, which is your base salary. Stocks and bonuses are not included here. That’s why you’ll see data points like Meta paying 200k for a VP level H1B. I reality they are absolutely not underpaying H1Bs at VP level and the person is printing millions a year.