True, but San Francisco is one of the most expensive cities in the world. Munich is the most expensive place to live in Germany and one of the most expensive in Europe so the move is still somewhat questionable.
Someone else in the comments said that it might be due to having a workforce in Munich that can't be easily fired because of German labor laws, and that could be an explanation