Offloaded app is not reinstalling

You can try and get the data from a backup or use it on an older device.

From this Apple Discussion:

If the app was deleted from the App Store and you were restoring an iCloud backup, whatever you saw was a glitch and the app was not going to download no matter what you saw. If the app is no longer available, it can not download again from the App Store.

When you restore an iCloud backup, the apps download from your purchases in iTunes, not from the iCloud back up itself.