Canaries were primarily used to detect odorless and invisible carbon monoxide (CO), which was responsible for many mining fatalities after explosions. Their high metabolism and unique respiratory system made them more sensitive to CO and other toxic gases like methane than humans.