This happen if you force bypass the storage encryption. Your mobile had a security lock (pin, fingerprint, etc.,) which encrypt your phone. Then when you rollback, twrp did not ask to decrypt the phone by entering the security code.
Happened to me a couple of times when when I played around...