It's not like PS5 and PS4 share components (not the hard to come by parts anyway) so I don't think that had much impact. I think Sony just thought MS would be stronger this gen and decided to not give the PS4 a longer tail, they wanted everyone transitioning to PS5 as fast as possible.
Now today of course we know MS' software pipeline failed miserably and they haven't been to release 1st/2nd party content on time, but you'd have no real way of knowing that 3-4 years ago.