Masochism
A mental condition in which a person enjoys being hurt. This will often drive a person to seek out dangerous and harmful situations to satisfy this need.