Is not about closed or open source. It’s about MS past priorities.
Apple is also closed source, but the need to transition from PowerPC to Intel, forced them to have multi-platform app packages (universal binaries). Nothing prevents MS to do the same. The legacy of Wintel apps reflects the MS priorities in the past. They have UWP, but in the usual MS way: ambiguous messages to the devs adopting the platform.