It is on purpose. The weight is also the name of the property of a layout grid’s column:
The weight is the width compared to the widht of the window that the layout grid is in. 12 being the entire width, 1 being one-twelfth of the width.
The ‘width’ is the exact amount of pixels.