Why Does My Mesh Move When Attaching Armature?
To fix this follow the below steps:

1- Select your armature and hit ctrl+A

2- Hit Apply Rotation

3- Do step 1 again and hit Apply Scale then again and Apply Location

4- Select your mesh and do steps from 1-3 again.

5- Voila, it will work :)