This is likely because of an App Store setting that removes apps you don't often use to optimize device storage. You can stop apps from disappearing from your iPhone by turning off Offload Unused Apps.