You may need a second opinion.
May be there was a fracture disclocation which was missed, and now due to displacement the doctor suggested surgery.
Next Steps
Do not worry.
Health Tips
Share x-rays.
For a regular hip dislocation,rest for 6 weeks is sufficient enough. Excessive rest may lead to pressure sores or muscle atrophy.