If your SIM card is not protected with a PIN, other people can theoretically remove it from your phone and insert it into another phone. They could then try to access your accounts that use the phone number on your SIM card. A pin protects against this very effectively.
This attack is similar to SIM swapping. In this case, people trick your provider into sending them a copy of your SIM card using your personal data.