Because it's a pile of if-else statements shuffled until it was able to perform a single specialized thing. Any housefly would by a thousand times as "conscious".
What makes you so certain a house fly doesn’t have a form of rudimentary consciousness? It might be a spectrum.
I assume that a housefly does have a basic form of consciousness. It's not going to write Shakespeare but it probably wants to mate. (I know people who's life goals don't appear to extend much further).
How about a computer? It has if else statements too.