Here's how we teach this in our training manual:
G. Detached Structure Exemption [§339.4(c)]:
A bank does not have to require flood insurance for qualifying detached structures that do not serve as a residence. However, lenders should account for any safety and soundness considerations.
[Effective 10/1/15]
1. Qualifications:
Each of following must be met:
a. Multiple Buildings:
There must be more than one building on the property.
b. Residence Structure:
One building must serve as a residence (sleeping, bathroom or kitchen facilities).
c. Structure Purpose:
The detached structure(s) must be used primarily for personal, family, or household purposes. However, it cannot serve as a residence (sleeping, bathroom or kitchen facilities).
2. Loan Purpose vs. Structure Purpose:
a. Loan purpose DOES NOT matter.
b. Structure purpose DOES matter.
------------------------------
As #2 states, it doesn't matter what the purpose of the loan is. What matters is the 3 qualifications and the purpose of the detached building. I think a garage detached from an apartment is for residential purposes.