At the end of a molting stage - Penguins grow new feathers that replace the old and worn out ones every so often. During this process their feathers are not "waterproof" and therefore they stay on land and fast for 2-3 weeks.
Copyright by Dr. Joshua Ong