What you are likely running into the the trimodal nature of software salaries [1] that has been extensively discussed here on HN in the past. tl;dr there exists (supposedly) in the global market, 3 tiers of tech companies, with 3 distinct salary ranges.
[1] https://blog.pragmaticengineer.com/software-engineering-sala...