Dogs are noted for their intense loyalty to their caretakers. They are also very affectionate. Once house trained, they normally will wait for a walk or a chance to go outside before "doing their business". Hence no need for litter trays, etc.
These are just a few reasons why people often choose dogs. There are plenty more.