Actually that isn't an understanding. It is a definition. Good is whatever God does. Whatever God does is Good. No matter how evil it seems to people, like committing terracide.
BTW, Odysseus isn't guilty for being mean to the Cyclops, neither are judges indicted for being just.