I have never seen this "Sign in..." message before downloading
This is a normal App Store pop-up. It does mean that somehow you were logged out of your Apple ID on your phone though, which could be for any number of reasons. Maybe someone signed out on your phone or someone tried to hack into your account and Apple forced all devices to re-authenticate, but there isn't an easy way to find out.