I think it does allow for some flex and prevents the lines from breaking off at the fittings where they enter the master cylinder. Also, I think it is done to simplify manufacturing. Every car will have slight dimensional differences, so the lines are made slightly too short with the coil and can just be stretched by hand to compensate.