Bad things happen to us to learn