From Middle English up-so-doun, upsedowne, upsadowne (“upside down”); equivalent to up + so + down, literally “up as down”.
up so down