Why is my wifi automatically connecting now when activating screen mirroring on my Galaxy S6?

A

AC Question

Why is my wifi automatically connecting now when activating screen mirroring on my galaxy S6?

I know I don't have to use wifi to screen mirror because I've told to the phone to forget any available networks and I'm still able to screen mirror with no problems. But what is annoying is having to forget all and any networks anytime I want to screen mirror and the phone even warns and says that screen mirroring may want work as well since you have wifi on. Is there a reason why my phone is now all of a sudden doing this? Before I used to be able to turn on screen mirroring with no problem and wifi not automatically turning on. Thanks for the help in advance!