They may not know the exact lunar phase but all animals are on a biological timer; their bodies go through cycles even without being able to see the sun, moon, etc.
There was a big study on African sparrows or some bird like that. Life cycles continue at set patterns. Heck, they may even be able to feel the lunar cycles, but who knows?