The roots grow perpendicular to the pant because they are reaching for the substrate XD the plant have a tendency to grow upwards but because the entire stem is naturally buoyant it floats horizontal. if it were rooted, it'd just grow upwards again.

you can try to anchor the stem to be horizontal to the substrate, but I have little doubt that it will have vertical growth and send vertical side shoots ^__^