Friendly usually refers a Player, Pet, NPC, Town, or City of the same faction as your character (Alliance or Horde) as opposed to being Neutral or of the other Hostile faction. Additional notes:
When you click on friendly beasts or NPCs, their name and highlight will be green.