LH is notoriously short of 748s, I'm guessing one was forced into bigger maintenance, they didn't have a suitable replacement, and SFO was chosen as the one to get the axe as there's decent coverage between UA flights, other group hubs and possiblity to leverage UA feeding into another NA destinations.