Programming a device to do something in the physical world is motivating and interesting.
I've two girls 3 & 5, and they love interacting with contraptions that I make using Raspberry Pi, ESP8266/32 and Sphero. Even building a simple IVR out of Twilio is hours of fun[4].
I was going to recommend Sphero RVR[5] or Bolt[6], but they are currently out of stock.
Forgot to mention, if you have an Amazon Echo, you could try building alexa skills [7] which my kids like too. You can do similar with google home, but I've not tried that.
[1] https://www.lego.com/en-us/themes/mindstorms
[2] https://www.adafruit.com/category/956
[3] https://learn.adafruit.com/category/wearables
[4] https://www.twilio.com/studio
[5] https://sphero.com/collections/all/products/rvr
[6] https://sphero.com/collections/all/products/sphero-bolt
[7] https://developer.amazon.com/en-US/alexa/alexa-skills-kit/ge...
Edit: formatting Edit2: Added alexa skill