I might be misinterpreting, but news coverage seems to say that Hezbollah fighters as well as medical personnel were injured. That might mean that the attack was aimed at pagers rather than Hezbollah pagers.
Such lack of precision would be what you'd expect in any kind of operation targeting so many devices.
Those medical personnel may also be members of Hezbollah. Doctors, nurses, and emergency responders can have ideological beliefs. For example, in my country, there are medical personnel with far-right and extremist views, some even holding leadership positions in such ideological organizations.
It's surely possible and or even plausible ideology has infiltrated civic institutions. Still it's quite a stretch to assume any victim of what looks like a supply chain attack is guilty, simply because of the scale of the attack.
Such lack of precision would be what you'd expect in any kind of operation targeting so many devices.