This is universally the case with new shooters. Many who have no experience with guns don’t realize that a firearm is literally just a machine. A purpose built machine designed to fling bullets with incredible degrees of accuracy in straight lines that exactly match the direction the barrel is pointed.
You the user give the machine inputs until it does the one thing it was designed to do, put a very stable projectile out in a very straight and very predictable path. No left, no right, not even really up and down deviations unless you are at long range or extreme conditions.
At 50 m or less pretty much anyone without a savage neuro-muscular disorder is going to hit a human sized target with any longarm. Anyone. New folks whose only experience with guns are in video games and movies are always blown away by this.
I have demonstrated this repeatedly by taking totally inexperienced and very nervous shooters to the range. The experience is always the same.
Headshots at 500m+ are a different thing but even then, an untrained novice isn’t going to miss a human sized target at 500m by more than a couple of feet. Ballistics just don’t work in the nonsense way that most game model them. Rounds simply don’t fly out of the barrel at skew angles.
It is why accuracy is measured in MOA.
Pistols are indeed much different, especially pistols with very short barrels but even with those, you wont be missing a human sized target on a range from 10m away unless you have a serious physical or mental issue.
At 10m you could likely throw a bullet at a human sized target and hit it pretty reliably. Using a highly refined machine that has been engineered specifically to put that same bullet downrange accurately is much easier as one should imagine.
Game developers have very odd ideas about how that works and RPG mechanics that deal with firearms have to much around with those wonky ideas even more to prevent guns from being instant combat enders at shorts and medium ranges.
Weirdly, their ideas about running and jumping while shooting guns work the opposite direction. Running backwards with a long arm while shooting is not just inaccurate, but also incredibly difficult and dangerous. Yet even in games where normal shooting is stupidly inaccurate the player is able to manage this task forward, backwards, and while sideways strafing with more grace, agiliyy, and kinesthetics sense than any Olympic athlete.
Hell just running backwards while looking forwards is crazy dangerous.