The piston is to give the slide of a recoil operated pistol a little extra oomph to overcome the extra mass of the suppressor because the barrel must move a short distance with the slide. Most centerfire pistols are recoil operated.
.22LR pistols are blowback and, as you surmised, the barrel is...