I don't remember who described marriage as "The triumph of hope over experience," but I suspect the same idea applies here.
The 18th-century lexicographer Samuel Johnson had a friend who was in a miserably unhappy marriage. Soon after his wife died, he married again. Johnson’s comment was that it was “the triumph of hope over experience.”