Obviously treadmill running is not the same as outdoor running, for a lot of different reasons. For me, when I have to run on the treadmill the distance is often wrong, which I change on my Fenix 5. This fixes it in Garmin Connect and Training Peaks, but Strava still thinks I have set a PR or WR or whatever. I always make a comment about the actual distance, but I don't know how to fix the distance in Strava.
Even this doesn't make treadmill running the same as outdoor running. Even with the incline set to 1% or 2%, it can't really make up for actual wind, where it's likely I'm running against the wind some and with the wind at other times (we all know it takes more to run against the wind than with the wind) when outside. Likewise, I'm not very good at pacing. I can hit my mile paces, but I can be +/- 30 seconds/mile when outside. On a treadmill my "pacing" is pretty even, basically because the "track" is moving at a consistent pace.
But I can work on turning my feet over quickly on a treadmill and I can work on my aerobic and anaerobic systems. So when the weather is too bad for me to run outside, I'll still hit the treadmill.