What do you think the reprimanding manager's motivation was? The possibility that you were doing work he wouldn't get credit for?
In essence, the guy was a micromanager with trust issues. They later replaced him, with someone that was actually worse.
At least it had a happy ending… oh wait.