Windows is falling off because they missed the mobile boat.
Most people never needed a full computer. All they do is consume and a phone and iPad is more than enough for that.
The desktop market is shrinking and the steam deck is pumping Linux numbers in an increasingly smaller pond.