Semen analysis is performed after a vasectomy to ensure that the testicles are not sending sperms to the penis during ejaculation. If sperm is absent from the semen sample after vasectomy, it means the vasectomy operation was a success.