Is that a engine always do the things he likes, wich the oponent maybe
likes but maybe not and thus differing in the evaluation?
Yes, if you replace "like" with "judge as the only correct move".
First, "Optimism" goes in both ways: If White thinks that it stands better than Black thinks it does, then Black also thinks that it stands better than White thinks it does.
They may be a half-move away from each other in their evaluation, but modern engines are blunder-proof enough that their evaluation score usually doesn't just wildly jump around after each new move, so you can usually safely compare the average between White's evaluation of move N-1 and the one of move N+1 with Black's evaluation of move N.
The case that both sides are "optimistic" occurs much more often than the case that they are both "pessimistic" because usually, both sides employ the Minimax-Algorithm in one way or the other. In theory, if one side plays perfectly, the evaluation score will never actually improve for it on its own move: "Perfectly" entails that they will not be "surprised" to find a better move. If one exists, it will already be incorporated in the current evaluation and thus not change it. The only way that this evaluation score changes if the opponent makes a mistake.
Modern engines don't play perfectly (yet), but the idea is the same: If one engine plays a move, there are only two ways the other engine will judge it: It either agrees that this was the correct move (the difference between their evaluation scores stays the same), or it will disagree because it thinks there was a better move that it used as the score for the position until now (the difference between the scores will increase in the "optimistic" direction). The third case that it disagrees "the other way round" (and the difference increases in the "pessimistic" direction) never happens, as that would mean that it until now intentionally used a score of a move that it judged non-optimal.
Engines never "like" the opponent's moves - they only judge whether or not they were mistakes. And as soon as both engines disagree over that, both will begin to think that the other has taken a path that is worse for them, causing what you call "optimism".
What does indeed happen is reevaluation based on the now deeper search horizon, and that blurries the effect a bit again (maybe the engine to move saw something which the other couldn't see yet on its previous move, so the other actually does have to decrease its own score). But as said, most modern engines are able to avoid large jumps in their evaluation (because they realize that they missed something) for the most part, so the "optimism effect" is more influential.