the presence of others cause increased performance

Why does the presence of others cause increased performance in some situations and decreased performance in others?