Are you showing this in a Text Box Widget? If you are, there is Formatting option to turn on or off grouping.
https://docs.mendix.com/refguide/text-box/#formatting
https://docs.mendix.com/refguide/common-widget-properties/#73-group-digits
I hope this helps.