A device for alerting for a drowning subject would be classified as a medical device (in Europe most likely class IIb as it is measuring a vital function in a life support scenario) as the malfunction of the device could fail to prevent the saving of a life. The burden of certification of such a device is understandably high, and one would have to be able to demonstrate that the device can accurately and reliably measure in its intended use and show that any risk that it doesn't has been adequately reduced (I'm simplifying greatly).
Unfortunately it's basically impossible to test, after all how would one get ethical approval for exposing subjects to conditions of near-drowning, so one would be dependent on placing prototype devices on swimmers and catching episodes of near-drowning by chance. It would take a considerable length of time to gather sufficient data to confirm the reliability of the device under such conditions, obviously...
(and no, I would not consider it appropriate to test the device under general swimming conditions as these would not adequately predict performance under drowning conditions).
In terms of cost, an earlobe pulse oximeter doesn't have to be more expensive than a fingertip one (aside from some miniaturisation costs perhaps) but part of the costs of these devices is due to patent issues: http://www.law360.com/articles/106524/philips-accuses-pulse-...
It wouldn't be able to interface with a device the lifeguard has in this case, but it could surely start making noise and/or flashing in an emergency.
I do work in this field (wireless vital signs monitoring) and unfortunately I don't know of any current technology that I would trust to monitor heart rate on a swimmer other than perhaps a chest strap (but not as a safety device either). For a point of reference, the Apple watch fails to accurately record heart rate when very sweaty or experiencing periodic movement (such as the periodic arm waving).
There was a kickstarter project for a swim safety device (mentioned by others in this thread) but I believe that was based around picking up the arm movement characteristic of this response, which may be a sensible approach (I don't know enough about the characteristic motions of the drowning response vs regular splashing).