That’s a standard repair trick for PVC in a tight location. Using the four 90’s allows the plumber to correct the leak and properly make a good PVC glue joint. When the space is tight, there is no way to make a straight line repair and properly make a good glue joint. The elbows allow for easier placement.