In Shakespeare's time, mattresses were secured on bed frames by ropes. When you pulled on the ropes, the mattress tightened. This made the bed firmer and better to sleep on. Thus the phrase, "Good night, sleep tight."
Tyler Akins <