People own shares in corporations. People work for corporations.
If I own a house and live in it, then is my house a person?
If I work on a ship that someone else owns, then is the ship a person?
'Corporations as people' is simply a legal fiction that allows corporations to have rights of free expression, protection from seizure of assets, and protection from legislative or administrative extinction at the behest of a political leader or legislature. They have many of the same responsibilities as persons, so they can be sued and fined. They can go bankrupt and have their assets liquidated to settle with creditors. They obviously cannot be imprisoned (directors might be), let alone executed not an American example, but directors of a firm that supplied Zyklon-B for gas chambers in Nazi murder camps were hanged for crimes cone in the name of their company).
Ultimately somebody is responsible for crimes committed in the name of a corporation, which explains why some executives of Enrob went to prison.