nitrite/ammonia spikes occur when the available nitrifying bacteria in a system are removed/killed by the owner's deliberate/indeliberate actions, or when said bacteria are overwhelmed by the introduction of more ammonia/nitrite than they are capable of handling
so removal of the filter media, failure to dechlorinate introduced water, and introduction of dead organisms are all possible reasons for nitrite/ammonia spikes