1. Question: Why are you allowed to pass by the entrance of a shul when there is a minyan in progress and we are not worried you are skipping davening if there is another entrance into the building but if there are two entrances on different side of your courtyard you have to light Chanukah candles at both entrances so people won’t think you don’t light?
A. The Shulchan Aruch (Orach Chaim 90:8) says that it’s forbidden to pass the entrance of a shul on the outside when the minyan is davening because it looks like you deny Hashem since you don’t go inside to daven. Then he lists a bunch of exceptions because they are excuses which prove you aren’t denying Hashem.
B. There is a loss of money when lighting Chanukah candles.
Answer: The Beis Yosef (Tur Orach Chaim 671:8) in his second answer says that since there is a loss of money involved by light Chanukah candles then people will suspect that if you didn’t light on one side maybe you didn’t light at all to save money but by davening where there is no loss of money then people won’t suspect you of anything wrong if there are two entrances.