Solution
- I cleared both "content settings" and "cookie and other site data", and it stopped gmail from automatically doing that.
- It was suggested that I should go to chrome://settings/passwords and then turn off the "Auto sign-in" setting, to prevent it from happening again.