You need a paid membership to Nintendo Switch Online to play course world in Super Mario Maker 2. Pretty sure you could access course world at no extra cost in the original
Nintendo Switch gift cards: where to buy Switch Online memberships and eShop credit | GamesRadar+
Nintendo Switch Online | 3 Months | Gamecardsdirect.com