Nobody knows where gravity comes from.
Unfortunately our understanding of the universe is not at a stage where that question can be answered. We know it exists and we know it can be predicted, but we can't explain the philosophical aspects which your question implies.
This is the nature of...