My head canon is that it only seemed chaotic to us, as we do not have an awareness that can perceive anything but the present, or a few dimensions. Q has perception we do not. And Q didn't really try very hard to explain his actions to us.
He could still be an asshole, but we don't really have the reference point to make an informed decision on that.