You're going on the "Writers getting paid" website and sorting by most paid. That's like looking at the top 10 NBA salaries and saying "Basketball players seem to be making money, and if they're good at the game they seem to be wildly successful"
And, notably, a wildly successful writer makes $120,000 a year. So, you know, the same as any employed coder with more than like a year or two of experience. And that's the very highest echelons of a famously incredibly competitive, rapidly shrinking field, with fewer real jobs than probably anything else not also considered an "art" of some sort.