There is no such thing as "just playing". This is how we learn in nursery.
Painting helps us develop our creativity- the mess is just part of the process!