See e.g. the dot-com bubble and how people who worked in IT and had invested their money mainly in IT were screwed, whereas it wasn't so bad if you just got fired and say invested in an S&P 500 index fund.
But yes, investing only in your employer is a particularly bad version of that.
Haha when I worked for Lucent long ago they actually had a program set up exactly for that, so my more foolish colleagues received vastly-overpriced stock in place of some percentage of their salary. Thinking back, the managers must have had some kind of incentive because they hyped it in unseemly fashion.
No need to keep it there if you just want to take your gains and walk.
[1] https://thefinancebuff.com/employee-stock-purchase-plan-espp...
It's interesting that these schemes aren't viewed in the same light as e.g. credit card incentives. Getting 0% interest for the first 6 months is a deal good enough to put the credit card bank out of business, but somehow enough credit card borrowers are getting screwed to pay for the incentive overall. TANSTAAFL. Why is that harder to recognize in some circumstances? Is it a class thing? Anyone can get a credit card, while only high-quality people like ourselves can get a job at Acme Inc?
Anyway credit card companies might be evil, but they receive enough scrutiny to be extremely lawful in their evil. (If you actually pay off the debt they won't forget about your payment.) Can we really make the same statement about employers, in general? One might have a standing order to sell these shares at regular intervals, but one has seen enough HR shenanigans by this point to realize that they DGAF about employee interests... "Oh gosh we're sorry that got changed at the beginning of the year and we didn't tell you about it for 9 months while you lost all the money you've ever made in this program! Our recent stock slump has been difficult for everyone! There's nothing we can do about it now! I guess you should have been mildly disciplined..."
ESPP is only for publicly traded companies, and when the purchase goes through, you get shares at a discount on the more advantageous of the starting and ending stock prices.
HR has no power to prevent you from selling that stock, it’s held in a stock account over which you have full control and HR has none.
That said: yes, they're usually a very good value for employees as long as you sell immediately and diversify the proceeds.
Ref: Enron.