Companies will often label someone a contractor so that they land in a different employment bucket and don’t get standard employee benefits.
It’s very clearly an abuse of the concept of a contractor, but sometimes companies break the law, intentionally or unintentionally.