Whats the point of the points system?

with almost everything you do in the game you get some amount of points (kills, flag return etc) then you get a total at the end of every match. but whats the point? the don’t seem to add up to any perks or anything. is to just compare to with your teammates and enemies?