Keep in mind that these aren't really intended for frequent use: they generally have been placing them on highways in between large cities, with the intent to enable the occasional long-distance road trip that would otherwise be outside the car's battery range. Even if Tesla loses a bit of money per car on average, it's probably worth it just for the value it adds to the cars in peoples' minds.
EDIT: Looks like they're not all solar at this point. Last question in the FAQ at the very bottom: http://www.teslamotors.com/supercharger
Also, with net metering becoming more wide spread, they could sell back any excess electricity produced from their solar installation back to the grid, which could possibly offset some of the costs of purchasing electricity during periods of high demand.