One thing may be possible - that they actually took a look at who worked remotely and who worked on site. From that they decided that the 100% remote workers were not producing as well, or were acceptable to lose.
It could be that Yahoo didn't set up their remote work procedures very well and so it lead to poor productivity from remote workers.
Obviously they're willing to risk losing employees so I would guess they put some thought into it.