It's a lot of work to stay open minded, flexible, free, and not know better.
Still, investing in their development can yield the kinds of people that an organization may be after.
How do you know they are 'good habits'. I have seen countless years of bad practices lauded internally as amazing/the etalon weight when it comes to code quality. In reality most of them were textbook examples of what should not be done. When you get folks without any previous experience, there's no one to question the status or the authority. If they learn/wisen up, they are likely to leave.
Note I said mostly. Of course there were older people, but they were in their 40s and early 50s. They were few and far between, and they were the "adults" in the room when needed. It worked really well.
It’s just mindset and maintaining it.
In our 20s we might not know better, follow others and end up letting the current take us where it may.
Sometimes when I meet an 18 year old I wonder how they are having experiences where they are growing or the rate of growing is slowing much quicker than someone who was on the early internet.
If you can stay young and build discipline in all ages it works as you are saying.
It’s less about being the adult in the room as much as supporting people to grow and become those people they are seeking.