The niche in most religions is consecrated so that it itself is a fit place to contain the divine.

It then symbolizes the holiness and special powers relevant to the particular deity.

If an icon is placed within the niche, then the god or goddess is there also.