Do you have a feather pillow? It's not impossible to scratch yourself on the stem of some feathers which may have poked out.
Or you did it yourself with your fingers (you don't need long nails to scratch, and having cut short nails can mean they're more jagged and sharp).
Or maybe you rolled off from your mattress and leant against the actual bed-frame, which may have scratched you if you rolled around much.