Understanding the hidden factors that shape urban green spaces