After losing control on the Helicarrier, Bruce tells Steve that his secret is that he is "always angry", and becomes the Hulk on purpose.
Bruce has merged his mind with the Hulk's body, keeping the Hulk form while staying himself.
In The Avengers Bruce learns to choose when to change. By Endgame the two sides have become one person.