A garment factory in Gazipur makes shirts on five tables in a row: cutting, sewing, collar, ironing and packing. Each table takes five minutes. Suppose one worker did all five jobs himself. A shirt would take him 25 minutes, and in an eight-hour day he would finish 19 shirts.
Now put a worker at every table and let each shirt slide down the line. The first shirt still needs 25 minutes to come out at the far end, because it has to visit all five tables. But the second shirt comes out five minutes after the first, the third five minutes after that, and from then on a finished shirt drops into the packing box every five minutes. The same eight hours now give 92 shirts. Nobody worked faster. Every table simply stopped waiting for the others.
A processor has exactly this problem and exactly this cure. An instruction goes through several small steps: fetch it from memory, decode it, calculate, touch memory, store the result. If the CPU finishes all the steps of one instruction before it starts the next, most of its hardware sits idle most of the time, like four workers watching the fifth. A pipeline gives each step its own hardware and lets five different instructions be in five different steps in the same clock cycle. That is why a modern processor can complete one instruction on almost every tick of its clock.
The line also has its troubles, and any factory manager knows them. Two tables may need the one steam iron. The sewing table may wait for a piece the cutting table hasn't finished. The buyer may change the design halfway, and every half-made shirt on the line has to be thrown away. In a CPU these three troubles are called hazards, and they are what examiners ask about, because they decide how much of the promised speed you really get.