You have trouble saying no because your brain associates refusal with a risk of social rejection or conflict, even though this risk is often exaggerated.
This difficulty is partly explained by our fundamental need to belong.
Lack of assertiveness, fear of conflict, and perfectionism are also common factors.
A study published in 2019 in the Journal of Social and Clinical Psychology shows that people with low self-esteem or a tendency toward social anxiety are more likely to say "yes"... even when they would prefer to say "no."