Why is my unneutered male dog is attracted to my spayed female dog?

unneutered male dogs are attracted to everything.