Hi Manan Minhas,
The line y=-2x in only in the region x<-1. After that region the equation curve will be y=2 this line is only in the region x>=-1 and x<=1. Similarly y=2x is only form x>1. If we extend the lines y= 2x and y =-2x downwards, they enter into the region x>=-1 and x<=1. But in that region the curve has some other equation. So, we can' extend those lines.
We initially have no idea about the shape of the curve, we just drew the line and we got that shape. We are not concerned about the shape.
I hope this helps!!