Heat from the CPU is exhausted thru the keyboard to prevent overheating. If the lid is shut, no heat can escape and the CPU could get too hot to function properly, even become permanently damaged.
To prevent this from accidentally occuring, Powerbooks (and probably iBooks) automatically go to sleep when closed. I'm sure you could disable if you really wanted to, but I suggest you don't.