Why do orgasms only last a few seconds?

Like, what would happen if they lasted 10 minutes or something? Would that be dangerous somehow?