This can be enabled or disabled under the System Settings > Battery > Options > Wake for network access (Always / Power adapter / Never). Or possibly the phone registers it as connected for a while after it sends its last packet?
(That may just be on iOS though...)