Companies get bought and sold for lots of reasons and some of them are not always obvious... For example, intellectual property, customer base, tax breaks, and write-off opportunities, to nàme a few. In the case of Google, Juniper's real estate is probably most attractive to them.
In other words Juniper may or may not get bought for it's products, customers or workforce alone, and the lucky buyer that decides to go through with it, is guaranteed a stellar C-suite and management leadership team that's experienced in stealth layoffs, slowing down growth by avoiding sound decisions, and experts at mismanagement, arrogance, and incompetence.