The physical origin for spatially large scatter of IGM opacity at the end of reionization: The IGM Lyα opacity-galaxy density relation