I'm not getting the pictures, can you describe the spots? If they're circular patches of hair loss then it's probably ringworm. Ringworm is actually a fungal infection and it is highly contagious, people can get it from horses. Rain rot is not contagious but if the horses were living in the same conditions it is possible that they both contracted it. Pictures would be great in figuring out what this is.