Not the main reason, game studios target consoles because of established player base.
Actually, consoles are tricky to develops on because they are quiet restricted from hardware standpoint, so you have to invest a lot in hardware knowledge.
In the current day that won't really affect gaming. As long as the PC is stable being its own snowflake hardware combo, the developer of a game doesn't have to worry about customizing code around it. Most games are built on engines like Unity, not that direct API access wouldn't be just as reliable. Games built on very well-tested platform like Unity just remove all remaining doubt.