so im confused on a tutorial

By default, variables are already public. With UI components, it is not able to be changed.