Here(I assume that the OP wants to minimize is a very shortthe number of turns rather than the total amount of absolute turning angles.)
If we restrict to moving only parallel to the axes, here is an elementary proof, but perhaps not completely trivial.
Assume there are $n$ rows and $m$ columns. Represent the traversing path by a line,segments going from the center of one unit square to the center of the next and so on.
There There are then three (overlapping) types of unit squares with path-segments, according to the Venn diagram pictured (notice that end-of-path squares are considered CORNERSTURNs):
Trivial observation: any row of the rectangle containing a HORIZONTAL unit squarean X-square must contain at least $2$ CORNER squaresTURN-squares. Likewise any column containing a VERTICAL unit squareY-square must contain at least $2$ CORNER squaresTURN-squares.
Conclusion: if each row contains at least one HORIZONTAL squareX-square, then there are at least $2n$ CORNER squaresTURN-squares. Otherwise there is one row consisting entirely of VERTICAL squaresY-squares, in which case each column contains at least one VERTICAL squareY-square, and then there are at least $2m$ CORNER squaresTURN-squares.
Since Since $2$ of the $2n$ or $2m$ CORNER squaresTURN-squares are end-of-path squares, there are at least $\min(2n-2,2m-2)$$\min(2n,2m)-2$ true cornersturns, as expected.
ADDENDUM 7/8/2024. (As per comments, if I understood correctly.)
If any piecewise linear path in the plane is allowed (self-crossing, not grid-aligned, not contained in the minimal rectangle around the lattice points), then the above result doesn't hold. The picture shows an example for $m=n=4$, with only $5$ turns: