You got scolded because you disclosed someone else’s confidential information without their permission. You had no business seeing that check, so repeating that information to others was completely out of line and in many places would have gotten you written up or fired (this would be akin to reading someone’s diary…