Hi! I'm not an expert so hopefully someone more experienced comes along to help soon :).
The code seems to say any residence, yours or otherwise. After a bit of research one website said that some cities require such buildings to be away from the house in case of fire (I guess the idea being...