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
Buy Nintendo Switch Online 12-Month Membership Digital Code
Nintendo Switch Online: How to sign up for the paid multiplayer service - CNET