Dumb question (and I grew up in a "Derby" family and I don't even know the answer!), why would someone race a gelding?

Sure there's whatever betting money you have on it, and the "fame", but surely they've put a ton more money into that horse than they'll EVER see with no stud fees. Am I missing something?