We can write the function as $ \ f(x) \ = \ \large{4 - \frac{1}{e^{ \cos(x-2)}} } \ \normalsize $ in evaluating your reasoning. Since you are seeking the maximum value of this function on $ \ [-2 \ , \ 0] \ \ , \ $ you would want $ \ \large{ \frac{1}{e^{ \cos(x-2)}} } \ \normalsize $ to be as small as possible, and hence $ \ e^{ \cos(x-2)} \ \ $ to be as large as possible. Since $ \ e^x \ $ is a strictly increasing function of $ \ x \ \ , \ $ you then want to find the largest value of $ \ \cos(x-2) \ $ on the interval.
The transformation $ \ \cos x \ \rightarrow \ \cos(x-2) \ $ translates the cosine function on the interval $ \ [-4 \ , \ -2] \ $ to the interval of interest. The only "critical point" of $ \ \cos(x-2) \ $ in $ \ [-4 \ , \ -2] \ $ is $ \ \cos (-\pi) \ = \ -1 \ \ , \ $ which unfortunately is the "wrong" kind of extremum for our purposes. Instead, we must apply the Extreme Value Theorem and examine the cosine values at the endpoints of the interval. We can conclude without consulting a graph that, as $ \ -4 \ $ is closer to $ \ -\pi \ $ than $ \ -2 \ $ is, and $ \ \cos x \ < \ 0 \ $ at all of these values of $ \ x \ \ , \ $ we have the chain inequality $ \ \cos(-\pi) \ < \ \cos(-4) \ < \ \cos(-2) \ \ . \ $ Therefore, $ \ \cos(x-2) \ $ is greatest on $ \ [-2 \ , \ 0] \ \ $ at the endpoint $ \ x \ = \ 0 \ \ , \ $ making the maximal value of $ \ f(x) \ $ on the interval $ \ \large{4 - \frac{1}{e^{ \cos(-2)}} } \ \approx \ \large{4 - \frac{1}{e^{-0.41615}} } \ \normalsize {\ \approx \ 4 - 1.51611 \ \approx \ 2.48389 } \ \ . \ $ (This last is the only point I disagree on: I believe the numerical value you show is $ \ 4 - \frac{1}{e} \ \ . \ ) $
The extremization using calculus would involve checking $ \ f'(x) \ = \ -e^{ -\cos(x-2)} · [ \ \sin(x-2) \ ] \ = \ 0 \ \ $ on $ \ [-2 \ , \ 0] \ \ . \ $ Since the exponential factor is never zero, we solve
$$ \sin(x-2) \ \ = \ \ 0 \ \ \Rightarrow \ \ x \ - \ 2 \ \ = \ \ \ldots \ , \ -2 \pi \ , \ - \pi \ , \ 0 \ , \ \pi \ , \ \ldots \ $$
$$ \Rightarrow \ \ x \ \ = \ \ \ldots \ , \ 2 - 2 \pi \ \ , \ \ 2 - \pi \ \ , \ \ 2 \ \ , \ \ 2 + \pi \ , \ \ldots $$
to find the only critical point in the interval to be $ \ x \ = \ 2 - \pi \ \ . \ $ However, the second derivative function
$$ f''(x) \ = \ -e^{ -\cos(x-2)} · [ \ \sin^2(x-2) \ + \ \cos(x-2) \ ] $$
is positive for this value of $ \ x \ \ ( \ f''(2 - \pi) \ = \ - [ \ >0 \ ] · [ \ 0 \ + \ (-1) \ ] \ ) \ \ , \ $ so we see again that this is a relative (and, as it turns out, absolute) minimum of the function. An argument such as that given above, or just direct testing of numerical values at the interval endpoints, shows us that $ \ f(0) \ $ is the maximal value on the given interval.
In this situation, your application of the properties of the function is "quicker" than following an extremization procedure, as remarked upon by KittyL.