For the same reason that you can spend from tens to thousands of dollars on many kitchen appliances, clothes, etc.: branding, appearance, and perceived (although sometimes real) correlation between price and quality. There are additional factors as such a list is bound to be non-exhaustive, but I feel that covers a number of main factors.
I don’t know how places like Casper keep selling mattresses.