A static website is seperate from your WordPress website. WordPress only functions as a data store where you manage your content in this setting, the JAMstack fetches the data through REST (or GraphQL) and builds a completely new website.