Friend’s cat did that when they left for a weekend. Did extensive damage to their house.
We don’t have pets but whenever we leave for vacation we ALWAYS turn the water off in the basement and turn off the hot water tank.
I have a friend whose 2nd floor laundry hose went shortly after she went to work. It flooded all day and did tens of thousands of dollars of damage to the house.
It would be a pain to turn it off when going out for shopping or work, but for longer term it’s worth the peace of mind.