GeoIP databases - which map IP addresses to geographic locations around the world - occasionally get it wrong, since VPN exit nodes, CDN edges, and shared infrastructure can move around. When GeoIP databases get out of sync with reality, you might end up somewhere you don’t expect by typing google.com and getting google.ca, or somewhere else.
To inhibit the geolocation behavior, you can visit google.com/ncr - which stands for No Country Redirect. Loading it once sets a cookie (which persists until you clear cookies) that tells Google to stop geolocating and serve google.com no matter where you are.
(In my experience, Youtube in Canada is nicer. Nobody will blame you if you take a day or two to report incorrect GeoIP data to Google 😉