A pet hypothesis of mine: I think consciousness comes from our evolved brain capability to simulate and predict the behavior of others for the purpose of recognizing if we are conned. Consiousness then is being able to apply this capability to ourselves.