In most places the law treats pets as property. If you die without instructions, your pet passes with the rest of your estate, and whoever ends up responsible may not want or be able to keep them. Many animals in shelters are there because an owner died or moved into care with no plan.
This article is general information, not legal advice. Laws differ by country and state, so speak with an attorney about your own situation.