I want to preface this by saying that I don't really have a problem I need fixing. More like I have a small problem that is fixed by minor things, but I am just curious how this kind of problem can occur at all. I hope this is the right stack for this question! Also feel free to speculate wildly, as I don't think it is possible to definitely determine the correct answer, but any answer might be educational!
So in more detail: The concrete program I have an issue with is the Spotify program on my computer. I have this room where the Wifi is really bad, so I connect my computer to LAN using an Ethernet cable. But the Wifi is still reachable, just very bad. Every program on my computer (Firefox, Mail, Telegram, some other messengers...) have no problem using the LAN (I presume, because they work). Only the Spotify program has very bad internet, has timeouts, is telling me it has not internet connection... Like it is connected to the Wifi instead of to the LAN connection. So my assumption is: every program on my computer manages to use the good LAN connection instead of the bad Wifi connection.
I said before that I don't need help fixing this problem: disabling Wifi and then restarting Spotify works for me. However, in researching this problem I found that the Spotify program seems to have a general problem with being more stable with Wifi than with LAN. See for example this Spotify community thread where people have been having this issue for years. So I think I am not imagining things but this is a general problem specific to the Spotify program.
And here comes my actual question: How can this be? Why doesn't the OS manage which internet connection every program uses? I would have assumed that most programs using the internet do not interact that much (or at all) with the networking side of things. Also in which way are LAN and Wifi connections different that a LAN connection can be less stable, like stated in the community thread.
Thank you in advance for answers! :)