Ironically, The XBox One was considerably cheaper than the PS4 at launch. People seem to be puzzled by the fact that Kinect2 probably was a $250 "Add-on" at launch (it is and was expensive hardware), and considered the X1 to be more expensive. The $100 price difference not even marginally made up for the Kinect2.
Sales prices of consoles cannot really be reasoned as we do not know how recouping r&d and the other 10'019 pre-launch things are factured into the calculation over what time frame/sales numbers are accounted for. Ideally in the end, sales of hardware should not have been a significant burden on software sales. Each company's idea about that may vary largely, but the common idea "See that games pay for the hardware" is never correct.
Actually you are incorrect on the bold part, Microsoft just make Windows free for the user. The same thing can happen on hardware but what it means free is Sony can have a flexible price. Many revenue on Sony are came from games which is fact. Hardware alone did not make any revenue.