This was never really true at most places, and even where it was sort of true, it's been false since 2023.
The ladder has collapsed. No more juniors to mentor and grow (in some cases no more US hiring period), and all of the carrots have been replaced with sticks. If you're lucky, the reward for doing good work and being nice is 'not being laid off', but the promo budget is gone and it's not like your boss gets a say in who's laid off so may the odds be ever in your favor.
It’s been very true at many places. It may not be your experience but that’s about your career.
Find a new job because this is absolutely not the case at any company where I know ppl in tech