The why I think is quite clear from an evolutionary standpoint. Whithout self consciousness all our actions would only be triggered by surrounding events, hungry - eat, tired - sleep and so on. But with the ability to reason about our self we can for example find and cure diseases long before we feel any pain which is an evolutionary benefit.