Fasciotomy is primarily performed to treat acute compartment syndrome, which can result from trauma, burns, or reperfusion injuries. The procedure helps in relieving pressure, restoring blood flow, and preventing permanent damage to muscles and nerves.