For sure, they did this just to compete with Steam, which has dominated the digital media market for several years now and has never really had any serious direct competitor.
Not to mention another point: all the money they’ll save by not having to buy discs anymore or produce game covers that had to look nicer and nicer, etc.
They’ll probably say later that this decision was made to protect the environment, but you and I both know that’s not true.