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
What you need to know about the new Nintendo Switch Online + Expansion Pack membership plan. - News - Nintendo Official Site
Nintendo Switch OLED with Online 12 Month Family Membership Bundle NS-HEGSKAAAA White - US