It's confounding in the sense that if a child has the same job as their parent, we assume that parental influence may have had something to do with it. Which it probably does, in a lot of occupations. But when the "company town" effect occurs, it's not necessarily because of parental influence.
It's merely a lack of other options.