If you sell a facility to another company, under labor law that company is a "successor" and is inherits the union & contract. I haven't researched but I suspect Kroger went a little further than just selling their warehouse, e.g. they probably actually shut down a facility and started using a 3rd party with a different facility with new staff.