Apple did not create WhatsApp.
It's the app developer's job to make sure it also runs on iPhone X.
They have to test it to make sure it can run on supported iPhones and it's not Apple job.
Put it another way:
You have developed a killer app and it runs on iPhone 5s but not on iPhone X.
Whose job is it to fix the app?