In the case of d33 - the polarization and strain are in the same direction that gives a maximum effective coupling coefficient but in the case of d31 - the polarization and direction of strain are perpendicular to each other and the compression is negative and therefore d31 and coupling coefficient k31 are negative.