Vons and Pavilions are not the same as Uber, Lyft, etc. I think they did it because they thought it was time to change their delivery logistics and were not waiting for concretization of the law around this.
Put another way, Vons' business model isn't centered around this law. It's incidental.
Companies like Albertsons who could benefit from these businesses weren't willing to commit to embracing them until there was stability in the industry. For all the faults of Prop 22, it provides stability through its incredibly high requirements for repeal or amendments. Companies like Albertsons now have the stability they desired and will embrace these rideshare companies to save a few bucks by shifting a greater financial burden onto individual drivers.
Having someone else do your deliveries and such has been a thing for a long time. Companies have gone back and forth depending on who's doing the bean counting and what they think is crucial to business. Sometimes they would split it. Some in-house some hired out.