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?

My opinion: "talking out of school" or "telling tales out of school" is tattling.

Replies