Socrates thought that no one could possibly be happy if they acted against their better judgment. And he who knows how to achieve happiness will do so. Therefore, he who knows what is right will do right. Because why would anybody choose to be unhappy?