When the parent buys the store, they are also buying their contracts and obligations.
Unless the contract was written so poorly this didn’t happen?