Two recent experiments [M. Somayazulu etal., Phys. Rev. Lett. 122, 027001 (2019) and A. P. Drozdov etal., Nature 569, 528 (2019)] reported the discovery of superconductivity in the fcc phase of LaH10 at a critical temperature Tc between 250∼260 K under a pressure of about 170 GPa. However, the dependence of Tc on pressure showed different patterns: i.e., the former experiment observed a continuous increase of Tc up to ∼275 K on further increase of pressure to 202 GPa, while the latter one observed an abrupt decrease of Tc with increasing pressure. Here, based on first-principles calculations, we reveal that for the fcc-LaH10 phase, softening of the low-frequency optical phonon modes of H atoms dramatically occurs as pressure decreases, giving rise to a significant increase of the electron-phonon coupling (EPC) constant. Meanwhile, the electronic band structure near the Fermi energy is insensitive to change with respect to pressure. These results indicate that the pressure-dependent phonon softening is unlikely associated with Fermi-surface nesting, but driven by effective screening with the electronic states near the Fermi energy. It is thus demonstrated that the strong variation of EPC with respect to pressure plays a dominant role in the decrease of Tc with increasing pressure, supporting the measurements of Drozdov etal.