Origin of spontaneous magnetization reversal in exchange biased heterostructures