The GP made it sound like you can't just have a side project that's completely separate from your job; that side projects are Google's by default unless you go out of your way to get permission to separate it out
In most jurisdictions that wouldn't even be allowed by the country law.
Google or any other company would have very hard time forbidding what employees do on their free time outside work, regardless of what they feel like putting on the work contract.
This is a way to have your cake and eat it too. Most code you work on at work isn’t open source at all.
Alternatively, you could have a side project that’s completely separate from your job.