How does have gravity?

Can you answer this question?