Why is Sleep so Difficult?

The pattern of racing thoughts late at night to falling asleep, only to wake up again continues. Why is sleep so difficult? It could be PTSD.