I don't think scientists know what consciousness is, so it's not a surprise that they don't know why it exists.


ScienceAlert
Scientists Don't Know Why Consciousness Exists, And a New Study Proves It
"Theories are like toothbrushes," it's sometimes said.