Minecraft wiki entry for Spawn, associated text: If the current spawn location is in a liquid, pick a random water mob.
If the light level is 7 or higher, there are no other blocks above the current location, and the current location is a grass block, pick a random animal mob.
Otherwise, spawn a monster mob.