A PST file is a comprehensive backup of all your data stored in Outlook. If you want to switch from Outlook to Gmail, importing a PST file is the best way to transfer the most data with minimal work.
When you add a Gmail account to Outlook, the Outlook and Gmail clients sync, and you can check your emails from both clients.