I haven’t heard about how those two companies pay. It’s definitely a common occurrence at Google, Apple, Facebook, Microsoft, & Salesforce.
Bonuses are often structured as a % of your base salary based upon your rank. More senior engineers will get an extra 10-25% each year essentially automatically.
This is separate from RSUs, which vary a lot more widely. Their value is especially dependent upon company stock performance.