i know it has already been stated however ill say it again to be more clear
Because ALL villages have a basic defense of 20 and spears have an attack of 10 each, the attack of the spears was not more than the basic defense of the wall therefore that is why both spears died
As for the report saying that the attacker has won, it says that because after the attack landed there were no defending troops left in the village (even if there werent any to begin with). therefore since there were no troops left the report assumes the attacker won
Finally to explain spiking, spiking is when a player sends troops to support a village (usually a barb village) for certain reasons. Reasons may include them wanting to kill attackers troops without the attacker finding out who did it, the person sending the support may want to defend the resources in a barb so that they can take them all for themselves or it could be as simple as someone wanting to dodge an incoming attack so they send their troops to a barb for safety and they may have forgotten to cancel
I am positive that the reason your spears died is from the basic defense of the village as i explained above and spiking had nothing to do with this attack