In the scenario you describe, it would be odd to say, “We have company” because you were the only one there. To whom would you say it? The new arrival? Now that would be extremely odd.
If instead of being alone, you were sitting with a companion when the new person arrived, then you could say (to your companion, and about the arrival), “We have company.” But again, that would be remarking on the new arrival, not on the fact that you had already had a companion. On the other hand, if the newcomer was a person with whom you had made an appointment and your companion had been unanticipated (whether an acquaintance or a stranger), then too you could say (but to the expected newcomer , and about the unanticipated companion), “We have company.”