Difference between に and で (for places)
English uses “in” or “at” for both, but に marks the place where something IS (existence), and で marks the place where an action TAKES PLACE.
A tip: look at the verb. あります, います, 住んでいます and 座ります (existence, staying in one place) → に. 食べます, 働きます and 勉強します (actions) → で.