What you saw was likely just a PS Now game, not an actual PS5 version as Sonic Adventure isn't on the PS5, nor is it on PS4 for BC.
Unfortunately, you'd have to sign up for PS Now in order to play Sonic Adventure on the PS5, and it'd only be via game streaming, you wouldn't be able to download it and play it offline.