Is this case not similar to uniform circular motion? If not, please
explain.
Not fully, no. The situation with uniform circular motion is actually slightly more complicated; this is a simpler case.
How can this be possible since acceleration should also change (not
constant but become variable) if the direction of the velocity of a
body changes given that in uniform circular motion the body is under
variable acceleration as the direction of the body is changing and so
not constant acceleration?
I think what's confusing you is that you're thinking of the acceleration as of an intrinsic property, a vector attached to the body. But acceleration is supplied by external forces. In uniform circular motion, the direction of the acceleration is not changing because the direction/velocity of the body is changing, but because the position of the body is changing in relation to the source of the force.
But that's just an extra complication. The changing velocity direction is not caused* by the change in acceleration, but is the consequence of the fact that the acceleration has a component perpendicular to the velocity (it's not pointing in the same direction).
* Note that I'm talking about what causes what; there is, of course, a correlation between velocity and acceleration in both directions, but I think your confusion is partly a consequence of a misinterpretation of the causal relationship.
Any non-zero acceleration will by its nature affect the velocity of an object by "just existing" (the acceleration doesn't need to "do" anything extra). An acceleration encodes a change in velocity; the unit for it is $m/s^2$, which is just another way of writing:
$$\frac{m/s}{s}$$
As you know, $m/s$ is the unit of velocity, so an acceleration vector encodes by how much a velocity vector would change after one second, and in which direction, assuming constant acceleration. It reproduces the $\Delta\vec{v}$ vector, that you can vectorially add to the current velocity vector $\vec{v}$ to get the new velocity vector $\vec{v}_1 = \vec{v} + \Delta\vec{v}$. Or, for an arbitrary time period, $\Delta\vec{v} = \Delta t \vec{a}$ and $\vec{v}_1 = \vec{v} + \Delta t \vec{a}$.
(You'd often just write that as $\vec{v}_1 = \vec{v} + t \vec{a}$, taking $t_0$ to be zero.)
For example, in this image, after some chosen time $t$, the velocity changes from an initial value of $\vec{v}_i$ to the final $\vec{v}_f$ (to the right, on the trajectory). Doing the subtraction $\vec{v}_f - \vec{v}_i$ gives you the change in velocity $\Delta\vec{v}$. Assuming again constant acceleration**, dividing $\Delta\vec{v}/t$ (where $t$ is the time span) gives you a sort of "standardized" change in velocity — the one that happens per single second — that we call acceleration. Then you can scale (multiply) that by time to get the change in velocity for any $\Delta t$ (even going backwards). So for some time span $t$, the change is $\Delta\vec{v} = t\vec{a}$ and, $\vec{v}_f = \vec{v}_i + \Delta \vec{v}$.
** This is just some image I found on the Internet; the trajectory for a constant acceleration would not look like this (it wouldn't curve back at the other end as depicted, it would instead be a parabola). But let's ignore that for now.
So you see, the direction is changing because by applying an acceleration you're actually vectorially adding to the initial velocity a $\Delta \vec{v}$ that doesn't have the same direction as it, which makes it turn.
The math is more complicated with variable acceleration and involves integration, but the basic idea and the underlying logic is the same. For a changing acceleration, you're interested in the instantaneous value of the acceleration, which you can get closer and closer to by considering smaller and smaller $\Delta t$; for tiny $\Delta t$, the change in velocity is practically very simple (the technical term is linear), as if the acceleration was constant for the duration of that small timeframe - so you can apply the same trick of "standardizing" the change in velocity (which gives you a value of for the acceleration that is the limit of the average acceleration as $\Delta t \to 0$, and otherwise makes the math work out).