Because the powerwall allows you to "buy" power at the opportunity cost of $0.02/kWh vs paying up to $0.32/kWh ? If you end up generating a lot of excess solar using a lot of grid power at peak times, it could pay for itself.
But of course, you need to do the calculation for your situation.
I don't think powerwall has that functionality. At least original powerwalls only provided backup power. From a C&I perspective this is one of the sources of revenue for batteries - however there are many different ways for electricity charges to be passed on to customers. It isn't only kWh.
"When originally announced in 2015, two models of Powerwall were planned: 10 kWh capacity for backup applications and 7 kWh capacity for daily cycle applications"
But of course, you need to do the calculation for your situation.