When you overhear something, it means to hear people talking about something, but you’re not involved in the conversation.
Examples:
I overheard the waiter tell the table next to us that they are out of salmon.
I overheard them talking yesterday about eliminating positions.