The warm-up should gently prepare the body for exercises by gradually increasing the heart rate and circulation; this will loosen the joints and increase blood flow to the muscles. Stretching the muscles prepares them for physical activity and prevents injuries.
Hope this helps. :)