Your numbers are ancient, 2013 for both the PS4 and the XB1. I'm sure they've become way cheaper/profitable to produce since then, they're not cutting edge tech any more.
They've also lowered the price significantly since then. Entry-level units can be had for $199, much less than the $399/$499 launch prices of the PS4 and Xbox One, respectively.