Well, in the first place, a duplicate of your code, running in NetBeans, does not produce what you show in your post. It produces this:
Value Square Cube
1 1 1
2 4 8
3 9 27
4 16 64
5 25 125

It produces the same thing if run from the command line:

Now, if you look at that, you'll see that there are two spaces before the first column, 9 spaces between the first and second columns, and 10 spaces between the second and third columns. That's what your software is asking for, that's what you're getting.
You've asked someone to explain a phenomenon that isn't occurring. GIGO.