A lot of food gets made by the same company and then put into different packaging. I can't remember any specific examples off the top of my head, but the kraft company definitely does this (or maybe kraft is the 'name brand' version - I've been trying not to eat shit so idk).
This isn't too surprising because McDonalds does taste good, says volumes about our culture though.