A point of clarification: Jehovah lectured Job because Job had expressed the expectation that God would explain to him why he had been made to suffer. When the false friends told Job that he was suffering because Jehovah was a strict and harsh god, Job disagreed. He was confident that God would explain himself at some point.
Jehovah's response to this was to remind Job that he had no right to expect such an explanation, as he was a mere human and God was, well... God. Job's defense of God was not an issue, as such praise and recognition are what Jehovah always demanded from people. Expecting him to explain himself to a human was akin to placing an obligation on him, and humans are... not the boss of him, to coin a phrase.
I suppose I should also note that the story does not state (or even imply) that Jehovah explained that Job was subjected to this treatment because of a disagreement between himself and Satan. Thus, Job's expectation of an explanation was sufficiently offensive to God that he chewed him out and left the matter at that.