Why is the bone moving the wrong part of the mesh?
It looks like you've accidentally weighted the wrong vertices. Select the mesh, enter edit mode, and select those vertices. Then, click the Object Data Properties tab in the properties panel.  Find Bone.004 in the Vertex Groups area, click it, then click the Remove button. Exit edit mode, and it should be fine.