That would actually be a really good idea for my in-laws. They put in solar several years ago and installed way more capacity than they need. So right now they're basically generating gobs of excess energy credits with the utility that they don't get any financial benefit from. An all-electric ADU would make sense for them, since the electricity to run it would essentially be free. I doubt this scenario applies to you, but if you happen to have PV installed and it's oversized, then that's a good reason to err toward electric with future energy consumption choices, including for something like an ADU.
I'll also point out, one big pro of an all-electric ADU is all the rebates and tax credits available for the appliances you'd be purchasing for it (e.g., heat pumps, etc.). Here's some national and state info you'll want to pay attention to on that front:
https://www.energystar.gov/about/federal-tax-credits
https://goldenstaterebates.clearesult.com/
You'll also want to see what other rebates your local utility might be offering...