Means, if your WiFi signal is weak, and there is another open WiFi. Note : Unfortunately, In the latest version of Windows Which is designed to stay connected to powerful WiFi Connection. So, you can also read this article - Fix WiFi connected but no internet access. This problem can occur due to multiple reasons.
And, after few seconds or minutes, it automatically gets connected.