The term is “implied consent”. IIRC it only applies to life threatening emergencies where you are unable to grant consent. It is assumed that you would want to live, so they try to save you. This along with things like the Good Samaritan Act are what allow much of what allows EMS personell to do what they do as freely as they do.