Playstation 4 launched when the competition (xbox one and wii u) was a total joke. Sony has also put a lot of effort into locking games to their platform in an attempt to make people buy their weak hardware.
Despite this PS4 didn't sell that well, a lot of people just switched to PC instead
https://en.wikipedia.org/wiki/List_of_best-selling_game_consoles
Despite this PS4 didn't sell that well, a lot of people just switched to PC instead
https://en.wikipedia.org/wiki/List_of_best-selling_game_consoles