It's not important or necessary to use a static function. In general, static functions prevent you from accessing the state of a class: its member variables. So they prevent you from modifying these.
And in general, the main source of bugs in a program is modifying the state an object. Again, static functions force you to calculate and return a new value instead of modifying existing values in place.