Either the sleep mode timed out and the phone went to sleep, interferences possibly or the phone left the wireless range while still ON.
I see these messages even on a Apple Airport Extreme. It's how the router is just saying, hey, the iphone is not connected. It's up to the iphone to get reconnected when in range or turned ON.