Cyclists perform best when they can discover and maintain a rhythm. By remaining seated while riding uphill, you may go a little slower, but you should be able to maintain a consistent cadence for a longer time. Standing up disrupts your rhythm quickly.