My understanding is that it's basically a cost benefit calculation where it would cost nearly as much or even more than a worker because of the mechanical repair cost over time and a restaurant still wouldn't be able to automate the entire production flow from take burger out of freezer -> package it up, so there isn't much benefit. Also, having all the burger variants McDonalds sells also doesn't make this easy.