The question of ideal cot height is largely a matter of personal preference, though oftentimes construction materials and technique may determine what the final height may be.
For instance, ultralight camping cots generally try to use less metal, so are often lower to the ground, while fold-out cots have a lot of hardware to account for, so can be as high as 30” off the ground.