The company does $2B in revenue and spends close to $800 million annually in sales, general and admin. This is over 3x their R&D budget. (For reference, Apple's R&D spend is higher than its SG&A spend.)
Per levels.fyi, Masimo is paying senior SDEs in HCOL $150k. They could 10x the comp to these critical employees without it being more than a rounding error in their numbers. (I don't think they would have had to go to 10x. Most people would practically tattoo a brand on themselves for a one-time bonus of $1m.)
Long story short: Masimo does indeed have the money to compete on salary with Apple for this set of employees. They chose to spend the money on attorneys instead.
Some companies don't value engineers. That often works, until they end up in an engineering competition against companies that do value engineers.