I believe it is the law in Japan for foreign guests to provide passport details when staying in a registered lodging. All the hotels I have stayed at requests for this, and an Air BNB owner that has registered the lodging would be required by law to request this as well.