They also do wage theft all the time, unpaid overtime, ignore breaks required by law, withhold tips... Employer offenses against employees is rampant.
As far as why this might be illegal, here's some background https://news.bloomberglaw.com/daily-labor-report/starbucks-n...