SMTP settings are simply a Gmail outgoing mail server settings; that only works for outgoing messages. So whenever you are setting up your Gmail in MS Outlook, then the first thing you need to do is set up SMTP server settings on your Gmail account. In my blog, I am providing the proper guide to set up SMTP server settings on Gmail accounts. To know the steps to set an SMTP setting you can read my blog.
Read more - https://www.atoallinks.com/2021/how-do-i-set-up-smtp-for-gmail/