During imaging procedures like mammography or ultrasound, compression is applied to the breast or pelvic area to spread the tissues evenly. This enhances the clarity of the images and helps in the accurate diagnosis of conditions like breast cancer or ovarian cysts.