Originally rifles that fired the 20mm round were meant for taking out tanks in the first world war and then by the early part of the second world war the armor of most tanks was too thick to penetrate. So the rifle was used to either disable a tank or attempt to kill the driver by hitting his viewpoint. Anyway large caliber rifles are making a come back as anti-material rifles which are used for taking out light skinned vehicles and electronics.