The $f(R,T)$ gravity in the background of the polytropic and barotropic fluid has been investigated in this work. We have selected the TOV equation to determine the internal spacetime of a spherically symmetric galactic object. With the use of the Einstein equation, we have selected KB-spacetime to calculate the mass, compactness, and surface redshift of a spherically symmetric body. Explicit conditions for model parameters have been constructed for the boundary conditions of the interior and exterior spacetime, and the Schwarzschild solution has been employed in the modified $f(R,T)$ gravity theory to evaluate different matching criteria. An increasing pattern in compactness with respect to the different radii is evident in the graphical representation of the compactness evolution for each of the individual star models. After selecting a non-vacuum field equation for \textcolor{red}{higher order curvature}, we reformulated $f(R,T)$ for $R$ and $T$. As a result, the tangential pressure, radial pressure, and matter density have all been calculated. According to the study, as the radius goes to infinity, the tangential and radial pressures display asymptotic flatness and converge to zero. Polytropic and barotropic gas EoS have been adopted since the star model confronts the presence of an isotropic fluid backdrop. It has been noted that in a polytropic background, both density and pressure increase with distance from the star's core, but in a barotropic background, the pressure exhibits an ascending pattern as a function of radius.