Hello There,
I believe you stated your question wrong. This is not possible. A tennis ball can't have more mass than a gold ball.
If you MEANT to say:
A golf ball has more mass than a tennis ball because
then your answer would be:
It contains more matter
Best Of Luck,
- Kai -