NBC spent something like $775 million for the rights and God knows how much for the production. Are they even making money?
You’re right: the Olympics might be a loss leader for NBC, something to build their profile and prestige. Even so, NBC is certainly taking in millions in ad revenue from the Olympics, and if they were to end their coverage it would certainly send a statement, and cost them lots of money.