I don't know your personal situation, but there are several common reasons why a family might say no to a guinea pig.
Possible Reasons
You might be considered too young to handle the responsibility. Allergies, lack of space for a cage and exercise area, insufficient time for daily care, financial constraints, or concerns about your ability to be responsible could all play a role.
What You Can Do
Ask your parents or guardians for their specific reasons. Once you understand their concerns, you can work together to address them—perhaps by creating a care plan or budget to show you're ready for the commitment.