The purpose of pain.

We would need to know that we are hurt so that we can do our damndest to fix what is wrong and avoid repeating history, the mistakes of it at least. If you know that you are hurt then you know that doing something hurts you and you know that something is wrong and then you try to fix it.