Rigging a Bone to a Mesh
Both must be aligned.

The automatic weight will find the closest mesh to deform.

See the test below.

The first test: I aligned the first and make parenting with authomatic weights. It deforms perfectly.

The second test: I just apllied the same parenting but with armature and object not aligned. It will deform just the mesh closed to the bones.