The PS3 took a late lead due to Japanese games, especially in Europe where the 360 did not stand a chance.
And in the current generation in addition to that the X1 chip is a complete design failure. It is based on the same architecture as the PS4 but it is more expensive due to the RAM but also much slower. This is why the X1 cannot compete at all, it is an inferior product.