Adding to this, the lines show the spacing between elements, which can be changed in the right toolbar (In Xd you can only change these by dragging, so that might cause confusion)
You probably cant move them around because they are in a parent ‘auto layout’ frame.
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank