Why would package need creds?

According to the docs:

you can package your project without deploying it to AWS

If this is the case, why would I get the below error?

AWS provider credentials not found.