Reset all settings on iphone?

After doing that my phone has gotten faster. Why is that? Did it renew all my softwares?

No it brought it back to factory settings, and therefore deleting everything allowing your iPhone with more memory or "room to maneuver" so to speak

You might have stopped the push settings, or it turned off most software so it didn't waste all the ram