In "Richard Cory," the poor citizens of a town struck by depression ostracize the wealthy Richard Cory. Friendless and isolated, Cory struggles to connect with the townsfolk, who think he's richer than a king. Finally, Cory commits suicide to escape his loneliness.
The poem is narrated in the first person plural, with the "we" referring to the townspeople who think Richard Cory too rich and well-educated to be their friend.
It's evident from the way Cory walks around town, trying to strike up conversations with its poor citizens, that he's lonely and wants to make a human connection.
Finally, Cory can't take the isolation and puts a bullet in his head to end his misery.