Companies don't want to train or mentor. They want to hire someone "to hit the ground running from day 1" for a specific technology stack or domain. The idea that they could hire a good junior programmer and train them up on whatever their specific needs are seems to have disappeared in the software development industry.