The 360 attempted to do that[0]. It wasn't exactly successful, and computing power improvements from one generation to the next shrink over time. There's no way you'll be able to emulate a PS3 on a PS5, let alone a PS4, save finally achieving quantum computing and managing to put that in a console.
[0] the PS3 did not even bother, early revisions just bundled PS2 hardware wholesale.