Why で in アパートでペットを飼ってる but に in 心の中に怪物を飼ってる?


で in アパートでペットを飼ってる seems to be common usage, but why に in 心の中に怪物を飼ってる? I
haven't found any examples of 心の中・奥で○○飼う, but here are examples of に:

> 心の中に怪物を飼ってる餅 ([source](https://togetter.com/li/1046649))

> すげぇやつはみんな心の中に怪物を飼ってる (ブルーロック)

> 葛西「悟史さん…心の中に怪物を飼ってるあなたを詩音さんに近づける訳には行きません」
> ([source](http://yanakb48.blog.fc2.com/category0-8.html))

> 誰もが心の奥に悪魔を飼ってる ([source](https://www.smule.com/song/shachi-angry-day-
> karaoke-lyrics/3560060_3560060/arrangement))




心の中 **で** 怪物を飼ってる would sound as if the person went inside their own mind and
did the act of keeping a monster there, just like keeping a pet in their
apartment. The focus here is on the act, and で indicates where it takes place
(or the spatial aspect of its circumstances).

When you say 心の中 **に** 怪物を飼ってる, on the other hand, your focus is more on the
existence of a monster itself and where it is. に is more appropriate.




心の中 **で** 怪物を飼ってる would sound as if the person went inside their own mind and
did the act of keeping a monster there, just like keeping a pet in their
apartment. The focus here is on the act, and で indicates where it takes place
(or the spatial aspect of its circumstances).

When you say 心の中 **に** 怪物を飼ってる, on the other hand, your focus is more on the
existence of a monster itself and where it is. に is more appropriate.

