Ligthing of slimes and magma cubes becomes dark when they land to the ground. You can see this bug by looking downward.
MC-165575 The Top of a Slime Flashes Dark when Jumping
MC-165134 Entities are rendered too dark when in the ground