Spikes increase the surface area of the shoes, making them rougher, which results in an increase in friction. This helps to provide more grip on the floor and reduces the chances of slipping. This makes it easier for sportsmen to walk or run as their grip on the ground increases.