There are a few reasons:
Sauron
- Sauron is REALLY afraid that at any moment his opponents will use the One Ring and become much more powerful. He currently has the advantage but he might looselose it at any moment, so he attempts this blitzkrieg instead of a regular siege.
- Mordor's orcs are too undisciplined for a longer siege: sooner or later they would start fighting betweenamongst each other (if they wouldn'tdidn't have an opponent to fight with), which means every day would reduce the power of his troops.
- Minas Tirith is a fortress, which means it is prepared for a long siege with supplies (or even inner source) of food and water. His huge army would have serious problem withproblems providing logistical supply.
- He has a huge advantage of numbers and power so he believes in a quick victory.
- Taking the city quickly would give him a chance to defeat the Gondor before Rohan would have a chance to respond.
Saruman
- Saruman is confident in the power of his new Uruk orcs and his technology. He also has a cunning plan to break the Helm's Deep fortifications.
- Saruman probably wants to show off to Sauron, possibly to prove that he would be not be a mere servant but maybe a someone with almost equal power.
- It would look VERY bad for him, if Sauron had taken Minas Tirith quickly while he was still besieging the Hornburg.
- (As pointed out by @Scott) Saruman had EodenÉomer exiled, greatly reducing the number of cavalry in Rohan's army. But exiled or not, Saruman could safely assume that EomerÉomer would probably return (even without Gandalf's guidance) to harass the besieging orksorcs. So a quick attack would have greatly reduced defender'sthe defenders' power and Saruman's loseslosses.
In other words, for both Sauron and Saruman have a solid reasons for a quick attack instead of a long siege.