This is because your mobile phone has not backed up or backed up iCloud data for a long time and the mobile phone is not syncing data with iCloud all the time. Therefore, you need to manually sync iCloud data before you can use HomeKit.
Solution: In the phone, go to settings - “Apple ID account” - iCloud - iCloud Backup - Click on “Manual Backup” and it will be ready when sync is complete.