Arthrocentesis is typically performed to diagnose conditions such as rheumatoid arthritis, gout, and septic arthritis. It can also be used to relieve pain caused by excess fluid accumulation, known as effusion, or to inject medications directly into the joint space.