The 3DS XL primarily uses physical cartridges. However, the Nintendo eShop (discontinued March 2023) offered:
Post-eShop closure: You can still re-download previously purchased titles via “Redownload” in the eShop app (requires internet & NNID). New purchases are impossible. For new games, buy physical cartridges or consider a Switch (full eShop access).