How it works
は (topic) raises 鹿 (deer) as the topic — “as for the deer…”. Then に (in) marks where it is, attaching to 森 (forest), and いる (is, lives) is the plain verb of existence used for living things. So the shape is topic, then location, then “exists” at the end.