It's obvious isn't it? First he thought he's freedom has been taken from him by the titans Then ge realized that he's being trapped by the people using and controlling titans, and they also want to destroy him, the home he knows and the people he had once tried to save, so he defends
WTF Eren... from "I will annihilated all the Titan" to "I will annihilated all the human outside the wall"