A serf in the Middle Ages was usually reasonably well cared for by his lord. For instance, many, if not most, had access to free medical care, such as it was, as the lord didn't want to lose his property. With the dawn of the Industrial Age, that all went away as the factory owner had no investment in his workers and they were easily replaceable. The life of those workers was, generally, much worse than their predecessor serfs.
Today, H1-B visas are about the same phenomenon. Make workers a disposable commodity and the riches you accrue will be without limit. But all of this overlooks the ascent of robotics, which truly will replace human workers. It will be less effective to throw you shoe in the works when the works just throw it back at you.
Young, developing minds have difficulty separating reality from fantasy. In many ways society encourages this, whether with Santa Claus or "happily ever after". This disconnect is used to comfort and motivate the developing child. The cost comes later in life, when many still have trouble discerning between attractive falsehoods, ("global warming has no anthropogenic causes"), and hard, cold fact.
Many here have proposed teaching logic before coding, and that is reasonable, but as a first step, perception must be groomed to discern between that which we want to believe and that which actually is. Without that, logic has no basis in fact and is as useless as a no-op code.
He has not acquired a fortune; the fortune has acquired him. -- Bion