your barrel nut might be a little loose.
Or, the nut behind the barrel might be loose!!!!
In all seriousness, 22lr is a 'dirty' round. The lead definitely has 2 functions; it lubes the barrel as the bullet leaves (Remember leaded gasoline? It was for the lubricating properties.) But as soon as the lead cools a bit, the flight characteristics of the bullet will change.
Some common 22 accuracy issues: First shot fliers after a well shot barrel cools down. You take a short break, and the first round winds up 2-6" off track. The lead coating the barrel gets very grabby, and it makes the next bullet slower and the bullet just does not go as straight as you would like. (The GOOD news- all that extra friction just heated up the residual lead in there, and shot #2 is usually a ringer so long as you do not try to over-compensate.)
Second: 22lr ammo is just not as consistent by nature as a centerfire round. And, when you consider how small it is, there is little room for the powder charge to compensate as it burns. If the primer is a little flat?? Low burn, slow, flier. If the primer is really hot, maybe a really quick burn, and a different kind of flier. Really hot primers in a tiny bullet burn more powder 'right now' and do not allow for smooth pressure build. You feel it as a really snappy shot usually. Often, I thought this was an overcharged bullet with too much powder. But no, it's usually a primer thing.
Third: a hot round. Usually they feel stronger, are louder, and DEFINITELY throw a bigger flame lick out the barrel. They almost always tear up the brass; you see it ripped and sometimes it will stick in the rifle. And these bullets are wild as all get out, some fly real straight, some travel.
I shot competitive match 22 for a while; learned a whole bunch from 22 masters; folks who made me look like a fool for years on end. For plinking, I will clean the rifle only if it is acting up to the point where the action slows or jams more than 1 in 50-100 shots. (I clean the rifle every day after shooting.)
For match level shooting, I will clean the barrel every 25 shots. 5 groups, and down the barrel goes a brush and a patch.