You knew before you did any writing there was a good chance you’d be rejected, right? Why did you do it anyway? Why did you apply to
this company? Did it have anything to do with their reputation? Or salary?
Lots of people are minimally qualified, and that’s not what they want, so their initial filter works for them. At least that should be your first assumption, no? Better depends on perspective, right? If you think you know a universally better way, what’s stopping you from building it? (If it’s money, be aware that money is available for people who know better ways, but you will have to do a lot more than 5 hours of writing to get it, and you’ll have to be okay with rejection.)