As @PetarVelev point out it is style. For many people having setters and getters is a boiler plate code, but usually they forgot why this was invented.
And this was invented to make maintenance of code easy. Imagine some class with some properties. This property is used all over the project.
Now requirement has changed and you have to do something every time property is accessed something must happen. For example when value is changed notification should be sent (setters should be updated). Or you have noticed that calculating some property is costly, so it has to be lazy evaluated (getter should be corrected).
When you write this property (class field) you didn't know that there will be such issues to solve. If you expose this as public field then to resolve this issue you have to spend hours to find every use of this value and correct it. On other hand if this is done by using setter and getter you will spend 5-10 minutes to fix it including adding a tests.
So having setters and getters is a good practice, where you will lose 10 seconds to write them as boiler plate code, but save lots of time if some radical change is needed.
Good example is Qt freamework.
So if you are sure that requirement will not change there is no point to use getter setter, but if you have doubts it is better to use them.
Now in your case where constant filed is exposed by getter is a bit strange. I'm suspecting that this is some example of functional programing, but without seeing actual code is hard to tell.