#Consciousness is a state of #Cognition. Cognition is a necessary condition for #Life, but consciousness isn't. Almost all cognitive processes are unconscious and will become conscious only when there are alternative options available requiring the conscious entity to exercise their #free_will and make a deliberate choice.
Making choices requires an #Environment where deliberation (competition) and #Selection can emerge. For unconscious living beings, the only available environment is the one external to them, where #Evolution happens. Conscious beings, in contrast, have also an additional *internal* #Learning environment where they can make deliberations and choose between competing alternatives more or less independently from what happens outside.