Ethernet is a wired medium, and WiFi is a wireless medium to transfer data.
You can use these two connections together by applying special configurations.
How to use Ethernet and Wi-Fi together at same time in Windows 11 and Windows 10
How to use Bridge connection
Windows 11 tips
Windows 10 tips
Fix error