A court has been told the reason why grandfather convicted of accessing child abuse material decided to access it in the first place.