Corporations figure out medicines too...but legality and exclusivity periods before generics with different inactive ingredients have to go down.
You probably can't just copy coca cola or it could have been undercut a long time ago. But Walmart/Sam's Club have their own formula of various sodas for a reason.