Why do they give me a wristband in the emergency room?

Safety. You get a wristband whenever you're in the hospital as a patient, not just in the er. This is to make sure you're the correct person and to avoid mistakes like giving you the wrong medication or giving another patient medication that was meant for you. Having the id bracelet is simply a matter of safety and security.