A lot of hardware gets Linux support because the hardware manufacturer itself (Intel, AMD, Mediatek, NXP, Marvell, etc) takes responsibility for writing and upstreaming Linux drivers. This is how companies like Lenovo or Dell can offer systems with Linux preinstalled.