The summary page of workgroups shows the amount of agents in each queue. When agents are part of a workgroup through group membership, they're not counted towards the total amount of agents:
On the details page for the workgroup, the count is correct: