A portable program is a better program. The effort invested to make a program portable also makes it better designed, better constructed and more thoroughly tested.
[1] Chapter 8: Portability, “Chapter 8: Portability,” O’Reilly Online Learning, 2022. https://learning.oreilly.com/library/view/the-practice-of/9780133133448/ch08.html#ch08lev1sec1 (accessed Jun. 28, 2022).