This is the essence of the difference between local and global position. A local position always gives the position relative to the parent, wehreas global tells you the relative position to the root node.
Relative to parent:
get_position()
Relative to root node:
get_global_position()