Everything grows from the rhizome
The ginger in a kitchen is not a root. It is a rhizome, a horizontal stem that runs just under the soil surface, and it has all the features of a stem: buds, segments, and rings where scale leaves were attached. The true roots are the thin ones hanging off it, and nobody eats those.
The leafy shoot above ground is not really a stem either. It is a pseudostem, a tight column of rolled leaf sheaths wrapped around one another, which is the same construction a banana uses and no coincidence, since they are in the same order.
The flowers frequently ignore the leafy shoot altogether. In many gingers the inflorescence comes up on its own separate stalk directly from the rhizome, pushing out of the ground on its own some distance from the leaves, so the flower and the foliage can look like two unrelated plants growing side by side.