Minecraft wiki entry for Sun, associated text: Except for bats, which require light level 4 or lower to spawn, passive mobs require a minimum light level of 9 (in Java Edition) or 12 (mooshrooms, polar bears, and rabbits in Bedrock Edition) or 7 (all other land animals in Bedrock Edition) to spawn; therefore, they do not spawn at night.