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
How to Cancel Your Nintendo Switch Online Subscription
Nintendo Switch Online Review: An Essential Purchase, but Skip the Upgrades - CNET