Setting up an internet connection via wireless (WiFi) will allow you to access certain online features like GameChat and GameShare, purchase games on the Nintendo eShop, and see what your friends are ...
Your friend doesn't have Pokemon Pokopia or a Switch 2? No problem. Use the Nintendo Switch Gameshare feature to share it with them!