Why this happens
India and Pakistan fought 3 major wars, 1947-48 , 1965 ,1971 and some more wars like that of Kargil in 1999 and of Siachin.
After the defeat of 1971, Pakistan knew very well that it was not possible for it to win a war against India.
So it decided to use the terrorist/Mujahideens created by US in Afghanistan against India. Later it created it's own.
When border infiltration increased, India decided to build the fencing and increased patrolling. The result was decreased infiltration. So to help terrorist infiltrate in India, Pakistan violates ceasefire and attacks Indian posts.
India retaliates, which leads to and endless cycle of deaths on both side. If India won't retaliate, it will be one sided(deaths only on Indian side).
This is not all, but this is the main reason. Others like revenge attacks by BAT and Para SF are other minor reasons
Why no one intervenes
Why would someone want to get unwanted trouble by getting into a fight between two nations with nuclear weapons? US, China etc advise both to keep good situation on border but that's all.
Steps to resolve this
Currently, the only way out seems to be an complete annihilation of either India or Pakistan. But this is very unlikely.