Snoopy sleeps on top of his doghouse because he likes to imagine himself as a World War I flying ace, and in his imagination, his doghouse is his airplane.