No it’s a wi-fi issue. A direct connection will always be better.
The wi-fi signal degrades the further it has to go. Throw in a wall or 2 and even a floor and is gets worse. You can even have dead spots because the signal cannot reach. I have that issue with Comcast/Xfinity. One end of my house has no service. The reason is the router is set up in my home office in the basement. The signal has to go through 1 floor and 2 walls and that kills the signal.. You can get signal extenders/boosters that will help but I have never tried on to verify.