They don't necessarily take a picture of houses. The houses just happen to be in the satellite image data that they purchase from the U.S. Gov't and other sources. Google Earth is a tool to view land, water, landmarks, businesses and yes...houses.
I don't really like that someone can see my house from using the service, but it is completely legal. Kind of creepy!