Once there is more than a single product being produced by an organization, hiring and firing is not generally correlated.
they're refocusing what areas to target, so they're laying off + hiring -- some of those people will be asked if they want to move to their new teams else they'll get some severance + job placement help