God is able to be all these things perfectly in that he is the definition of all these things. When God acts out of the capacity of His nature and who He is, we as the created, don’t have the right to look at the creator and accuse him of injustice based on our standards.