I think you’re incorrectly jumping to correlations/causations.
Your references are due to sedentary, not laying down. You can have a sedentary life standing in place most of the day. Likewise, the problem is being sedentary, not what position your sedentary in.