There are many reasons to keep secrets. Some secrets are kept as a matter of strategy. We don't want the enemy to know where our submarines are. If you plan to quit your job this coming year, you may keep your decision secret until after you receive your bonus.
