There isn't too much of an explanation, it's just happened before with males. I think that some males will 'make a move' on the other snake if he feels it is a female, while the other may not be as mature and doesn't really care enough to realize what the other male is attempting to do.
I don't know the details, but it could be that both males just think the other is female, and interlock. Nothing would happen, obviously, but the initial action has still occurred before.