It was very common in those days for people of the same sex to sleep together. If you were travelling, you paid way extra for your own bed; it wasn't uncommon for total strangers to sleep together in inns and roadhouses. When rooming together, it was not unusual for men to share a bed as Lincoln did in his twenties (when he was very poor, as I recall.)
Strangely, husbands and wives did often have separate beds, and if they were more prosperous, separate bedrooms as well. Given the far greater birthrates then than now, I don't think it put much of a crimp in their married lives.