It's not a thunderstorm, because it isn't even raining and I can't sleep. It's not rain because it's been there for three in-game days. And I'm in a swamp biome.

Leaving and entering the world doesn't fix it.
Sky turns dark for no reason on Bedrock Edition.