This edit is probably not the result of a machine, but of an actual human being.
Someone formatted random words which are reserved words in Java but in this case they were not used as Java code. Humans should be able to recognize this little difference, instead, it looks more like machine-generated formatting to me.
Humans should be able to recognize this difference, but that doesn't mean the editor cares. If they think it should be highlighted, often they will inline code format
whatever they find important. They'll also code format anything they register as a "function" or "keyword" without bothering to read the context of it. It's rather common, actually, for newer editors to misunderstand what that formatting is for, or just to not care and use it how they see fit.
Also the replacement of the word "Analyzing" by "Analysing" doesn't make sense for me because both words are accepted as correct spelling in English.
You are correct. Both spellings are correct spellings in one region or another. But not everyone realizes that. In fact, my browser's spell-check says that "analysing" is incorrect. These localized spellings can confuse people who don't know about the other form. Add to that a spell checker that doesn't account for British spelling, or, if you're using a British spell checker, one that doesn't account for American spellings, and you may have users "correcting" already correct spellings.
As explained in another Meta answer*,in another Meta answer*, there is nothing wrong with American spellings over British, or British over American. If this is the entirety of a change or the rest of the change is equally as pointless, it should be rejected or, if already approved, rolled back.
Do such edits occour more often? Are there people who try to improve their reputation in this way?
Pointless edits like these do indeed happen. Sometimes they are a simple misunderstanding of how editing should be used, and sometimes they are simply an attempt to gain that "+2" for doing the smallest amount of work possible.
The best you can do is reject edits that do not improve the post, if they occur on your post, or edit further to actually make the post better and potentially remove unneccessary
code formatting
if you see it's gotten approved. Once you hit 2k rep, you'll be able to review these suggested edits in queue and help actually improve these posts that are having pointless edits suggested for them.
As Brad LarsonBrad Larson pointed outpointed out, if you see a pattern of these kinds of edits by a user being made in a very short amount of time and getting approved when they should not, you can flag as "Other" for a moderator. Explain what's going on, link to the reviews of the edits that were approved, and if the moderator feels there is a problem, they can temporarily suspend a user from suggesting edits.
*The revision history of that answer is a decent example of pointless edits as well. Thanks to Deduplicator for suggesting to look at it.