Your WhatsApp groups may not be as secure as you think they are.
— Jordan Wildon (@JordanWildon) February 21, 2020
The "Invite to Group via Link" feature allows groups to be indexed by Google and they are generally available across the internet. With some wildcard search terms you can easily find some… interesting… groups. pic.twitter.com/hbDlyN6g3q
Any link to a WhatsApp group that was shared outside of a private message could be found in Google. Users could follow the links to join the group. The fact that the links were, at some point, shared publicly is what lead Google to indexing the content in search results.
Google's Danny Sullivan acknowledged this on Twitter, saying:
Search engines like Google & others list pages from the open web. That's what's happening here. It's no different than any case where a site allows URLs to be publicly listed. We do offer tools allowing sites to block content being listed in our results: https://t.co/D1YIt228E3
— Danny Sullivan (@dannysullivan) February 21, 2020
Sullivan also noted that there are tools available to block content from being listed in search results. It appears that someone from WhatsApp must have utilized said tools, as the thousands of links to WhatsApp groups have since been removed from Google.
While these links have been removed from Google, they're still available to be found in search engines like Bing, DuckDuckGo, and others.
Apparently, this issue has been going on for months. It wasn't until an article was published by Vice that any action was taken. To be sure, only WhatsApp is responsible for this issue. Search engines are going to crawl and index what is publicly available, so this is not the fault of Google or other search engines.