Talking out of school

I'd love to know the origin of "talking out of school"... I believed
it meant telling tales, snitching, or ratting out someone. Others tell me that it now means " speaking outside one's competence"?

True? False? What does anyone think?

Replies