闻名 (wénmíng) holds a more formal and prestigious connotation than its everyday counterpart,
有名 (yǒumíng). Its usage often implies a level of respect and admiration. It's the word you'd see in a travel guide describing the Terracotta Army, not in a casual text message about a popular vlogger.