The audience doesn’t know that he had a just reason to ‘betray’ them until after it already happened. We then spend a little bit of time with his character where we realise that absolutely nothing about it was in his control.
EDIT: Yeah, I’m sorry that it came off as that.