I'll back up Jalex23's answer by saying that the ship-to-ship combat in those movies was also heavily inspired by naval combat from the age of sail; lots of big armored ships firing broadsides at each other. There's some WW2 fighter-planes dogfighting alongside for show too, but otherwise it's just broadsides.
This comes down to the fact that film is an almost purely visual medium; you have to show people things that they can understand. Realistic space combat would be completely invisible to the human eye. Ships would be firing from extreme range (literally millions of miles), and dodging randomly to avoid being hit by invisible laser beams, then exploding for no obvious reason. Both the ship and the ground combat has to work visually, and that means there's no artillery firing from over the horizon, or hypervelocity projectiles that arrive with no warning, etc. Just easily-understood formation fighting.
In fact, the way the troops arrive, then form up into formations, then fight would have been completely understandable to the ancient Greeks. A Greek war consisted of about a hundred men marching about a hundred miles to a neighboring city-state, then forming up into the ranks and files of a phalanx in a nice open field outside the city. The city's army of about the same size would form up at the other end of the field. At this point both sides would put on all their armor (you don't wear 70 pounds of bronze plate while you're marching), then the two phalanxes would walk towards each other. At the last moment they would charge at each other, so that they would have enough momentum for spears to potentially pierce armor. That single battle would decide the entire war, and casualties on both sides would be quite low compared to WW1.
Aside from the fact that they arrive in spaceships, and are using blasters rather than spears, I think that a lot of the combat in these movies is not so different. One author I read says that the decisive infantry battle is the "Western Way of War", a common heritage that has shaped our history and culture for over two and a half thousand years. I find it hard to disagree.