Lord Krishna knew that the Kurus were destined for annihilation; and it was supposed to be an example for future generations. Morality, righteousness has been part of Indian culture for thousands of years.