We are more likely to pursue careers or interests if we know someone (and are friends with them or related to them) that is interested in the same thing or has had experience in the same thing.
Your comment reminds me a bit of something I heard years ago from a manager at Facebook claiming that the way to solve imposter syndrome was to have people select which teams and projects they worked on because they would be more motivated to work at it. Totally off from what my experience had been, but likely applicable to some people.
However, I'm not saying you are wrong and I'm right. I think what's surfacing here is that what I posted doesn't apply to everyone and what you are saying doesn't apply to everyone either. It likely helps different types of people in different situations.
There's an old piece of advice I remember hearing once that for almost any intractable problem or area of concern in your life, the answer can usually be found by meeting more people. If you actively work towards meeting people that know the thing you want to know or have experience in the thing you want to learn or be better at, you'll eventually meet them and unlock that piece of wisdom or personal connection that can get you where you need to go.
Obviously it doesn't apply to everyone.
Have you seen how many people in Hollywood have famous relatives in the industry?
It's the same for any industry.
It's very common.
Growing up, I wouldn't have fathomed what it meant to be a screen writer. I literally did not know what the job entailed, other than 'writing'. Nothing.
My Uncle was an Engineer, hanging out with him I saw how that worked, became interested a bit, ended up recognizing how important 'Math' etc. was, worked on a couple of related projects etc.. Eventually getting an internship because of a family member. It was a small favour but a big deal.
And even aside from opportunities, all of the small things, habits, perspective and behaviours of a class of people expected to perform certain functions.
Anyone can be whatever but it's far more likely that those who are exposed, who have role models, behind the scenes access, internships etc are going to get opportunities.
Representation does matter I think, that said it depends a lot on context. For politics, judicial system it matters existentially. In pop culture, especially for kids I think it's important that they 'see themselves' in roles. For a lot of things however I don't think it matters at all.