Hi Pelin,
The first phrase uses "live" as an infinitive, the "to" plus the base form of the verb. So the "place" is where the action of living happens. The second phrase uses the verb "live" as a noun by adding -ing to it to create "living." When -ing is added to a verb to create a noun we call it a gerund. In the second example, "living" is the object of the preposition to, and objects are always nouns. So, then, it is a place for the activity of living to exist. "Living" is understood to be a thing, not an action.
I hope this helps. Happy English learning!