Outdoors you’re actually riding a bike and everything that entails, mental and physical.
Indoors, you’re pedaling a bike that’s on a fixed stand with zero outside influences and distractions.
The macro level training and practice benefits of dealing with all the non pedaling stuff outdoors is part of what you get outside and it does have a mental (large) load and even a physical load too…