Why the PIN code matters for registration
The address of your registered office or place of business fixes your state. For a company that decides the stamp duty on incorporation and the Registrar of Companies; for GST it decides the state code at the start of your GSTIN and which state's officer handles your registration.
Where the data comes from
Lookups use the free Postal PIN Code service, which draws on the India Post directory. The request goes from your browser straight to that service.