There are these "smart" water shut off valves now that you can plumb into your main water line and it detects water flow. They all use some sort of computer learning to "learn" your water usage and start to identify things that are out of the ordinary and then notify you via text, email or phone call to say "hey, your water is running, want us to catch it?"
Moen Flo shutoff valve example
Phyn Smart shutoff valve example
The issue is the devices themselves are pretty expensive (good ones like the Moen or Phyn above, all run ~$400-600) and unless you're quite handy it would require a plumber to install. Most of these devices require a power outlet somewhere nearby to power the device catch wifi to run the app & monitoring setup / power to actuate the motor to close the valve if something leaks.
My dad got one and it's pretty neat. If a toilet is running, it will send him a text, an email and call him to say "your water is running, push 1 if you don't want us to shut it off". In the event you were away from home on vacation, the device would shut off all the water to your house and prevent a big big disaster (although, it wouldn't unplug your hot water heater...).
The rub is that as many have mentioned... many view it as cheaper to just use your insurance in the small chance things go wrong and get a new kitchen / bathroom, etc. Insurers aren't offering discounts for having a smart shut off valve like they are for the "safe driving" tracker apps.
I did a bunch of work around this as a "subscription model" where old company I worked for would do the install and then you'd pay a smaller monthly fee to get monitoring. I didn't really think too many folks would be keen on a $20+/mo "subscription", but not sure it ever got any traction with consumers / insurers after I left.