Well -- in the first one, it's not clear anyone did tell "you" anything. It seems that "you" said something like "I don't know why they told me. I guess someone thought it was a good idea to tell me." (Maybe "you" snooped and found something out without being told.)
Edit: Thinking about this more, I don't agree with what I wrote above any longer. It just seems that the "would have been" i