This goes in Networking, being a question about networking and all...
Further, if you'd searched in the Networking forum, you'd have found out that this is a common issue with some fixes and workarounds. It's likely a firmware-combined-with-local-situation issue. You can avoid this by manually disconnecting before putting the machine to sleep, or by putting up with manually selecting the network when you wake it up.
Technically this happens because the computer doesn't tell the AirPort card that it's going to sleep (or it doesn't do so effectively), so when it wakes up, the card doesn't know that any time has passed, and it thinks the network has gone away. For a more indepth discussion, search for this issue here in Networking. I've written a lot about it over the years...