Because Color is not a field with a value. When you set a color, B4A creates a ColorDrawable object with the specified color and replaces the view background with this drawable. There's currently no way (with B4A) to get back the color value used for this drawable.
If you need to store the integer value of the color to retrieve it later, you can use the Tag property of views.