Possible cause 1 of 2:
Automatic mobile data usage is turned on
If automatic mobile data usage is turned on, your mobile phone will use mobile data when the connection to the Wi-Fi network is poor.
What you need to do
Turn off automatic use of mobile data.
Did this solve the problem?