Your own company could've sold it to data brokers. Look into Equifax's Work Number score, it includes fun things like where you worked and how much you made. But no, let's not unionize or anything.
Unions are on board with this, see e.g. https://unitedafa.org/news/2020/5/9/employment-verification-...