In my head they're just so caught up in the conversation that they didn't notice the hill they were walking had crested, so they continued on the same upward trajectory.
A lot of screwy things happen in Bethesda games, like skyrim, especially with NPC's. It would be very on brand in a Bethesda game to be walking along and see two NPC's just hovering 100 feet in the air talking.