Warning: major spoilers ahead.
You aren't truly alone in Portal—there were test subjects before you, and there are hints that you yourself are a clone (GLaDOS mentions your brain is permanently backed up, and a hidden bonus area shows rows of Chells in test tubes). You appear alone during the tests because GLaDOS is running a controlled experiment: isolating a single subject keeps the results "scientific" rather than turning it into a two-person ordeal.