An autoclave is used to sterilize hospital supplies because: