sperm consider as antigen for man and female as you know in healthy men, sperms do not come in contact with blood. The blood-testis barrier formed by the Sertoli cells in the testes keeps the sperm away. if this barrier is opened the anti-sperm antibody occur.Also, in women may develops antisperm -antibody. For your question, I think the time is avery important here where the sperm may reach to target egges before the immune respose takeplace .
I think it was not detected by female immune system because it dead, so the immune response was activated by living foreign body, in other way sperms was foreign body