How many kids books -- or novels of any kind -- have only passive descriptions of what people said, as opposed to actually quoting the characters' words? Quoting is certainly a form of storytelling, and can often convey emotion more succinctly than needing to spell it out.
"He was like 'okaaay...'" vs "He said it was ok, but in a sarcastic manner that implied he was not happy with it."
But, distinct from an actual quote, ("And I said to him, 'What are you doing here!'", per the other poster), the quotative-like allows narrator freedom in a way that a direct quotation doesn't. The listener doesn't expect the words to be a literal quote, rather, the sense of what was said is enough, allowing the narrator to simplify, or to exaggerate for emphasis or comedic effect.