From liggja (“to lie”) + í (“in”) + kör (“a bed in which one lied bedridden”). Compare karlægur (“bedridden on account of old age”).
liggja í kör