The mechanics of spider mines is they "hit anything that touches the ground". There are several units they don't hit such as all workers, vultures themselves, archons etc... This is all because those units "float".
I think “floating” units also have a different movement behaviour. They move a lot more like flying units. Do they also stack and transit through each other? I don’t recall.