I’m not following here. Marathons are very much actual races. They even give out 1st/2nd/3rd place awards and everything.
It is also viable for a sales pitch competition to take place at the same time as a hackathon. When we look past the early hackathon days, we can observe a trend towards events hosting both. Similar to marathon/races, appealing to a wider audience helps with logistics. Maybe that is where things get confusing?
Perhaps this is easier for you to reason about with a telethon? Rarely do we find a competitive element show up as being an objective of the event in that setting. Only the endurance component, where telephone operators push themselves to answer phones for periods of time beyond what would be considered normal.