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
Online + Expansion Pack Family Membership - Nintendo Switch [Digital] - Walmart.com