It wouldn't remotely scale across Google if we had to escalate to legal every single time we pulled in a new dependency. Instead, there's a company-wide allowlist of accepted software licenses, and you only need legal help for exceptions beyond that.
So yes, we do have to know some basics of software licensing. It's just part of being a SWE.
This is akin to saying SWE’s don’t need to understand GDPR, COPA, HIPPA, DMCA or whatever. Obviously there might be cases where someone never touches code in a GDPR or HIPPA context. But any SWE working in those areas should damn well understand the basics of the law — at least enough to flag inadvertent, but none the less blatant violations.
If you're lucky, you'll have automated source scanning, legal will be informed after the fact, and you'll spend a week backing out the offending code and finding a replacement.
What's more likely is that it will be shipped to production and sit there until someone notices or you get sued ;)
Another one that likes to bite is the very not-open source Oracle extensions to open source Virtualbox / Vagrant... How many devs at big corps just click through that splash screen?
Thinking legal is going to protect you is wishful thinking... Devs need to know the basics.
Or perhaps even further -- it clearly demonstrates a reckless or willful ignorance of the entire topic.
You don't develop complex software by having to go through legal for each of your dependencies.