This is false. Long range howitzers are still rifled (
here's the inside of an M777 for example), albeit with some slight differences in how that works compared to small arms. Rather than the rifling engaging the projectile itself, the projectile is actually sized to be the size of the inside of the rifling, and then it has a larger "driving band" at the base that is made of a soft metal like copper that actually engages with the rifling, allowing the projectile itself to be steel without destroying the rifling in only a couple shots (visible here:
https://upload.wikimedia.org/wikipe...t_Desert_Fire_Exercise_130423-M-VH365-119.jpg). In addition, they usually have rifling that starts out with very little twist and then gains twist as you approach the muzzle. This allows the angular acceleration of the projectile to happen more smoothly and puts less stress on the driving band and causes less wear on the rifling than a constant twist rifling like you'd find in small arms.
You're probably thinking of modern tanks, which have almost entirely switched to smoothbore (with the exception of the British Challenger, if I remember right), because apparently spinning projectiles typically have somewhat worse armor penetration and the smoothbore lets them achieve extremely high velocities that let APFSDS (the long narrow finned rounds with discarding sabot discussed above) work to peak effectiveness.