Hamstring Pain During Squats but Not DL

Hi, my training partner has told me he experiences pain when squatting in his hamstrings but yet does not feel pain when DL or doing hamstring curls. He said it’s always been like that for him. Does anyone know what might be causing this? I’ve tried doing research but I’ve not found anything yet.