Laparoscopy is performed for various reasons, including diagnosing unexplained abdominal pain, investigating infertility, and treating conditions such as endometriosis, fibroids, and ectopic pregnancy. It is also used for performing biopsies and removing organs like the gallbladder and appendix.