Under the doctrine of 'respondeat superior,' a hospital may be held liable for the malpractice of a staff nurse because: