This happens sometimes or for some files, not all, in case I make small changes to a file, instead of showing that small portion as a change, git takes as the whole file is updated, as if all the lines are removed and rewritten.
For example of the following changes:
git shows the changes like this:
As we can see the whole file is changed.