It depends who attacked you. if you get attacked by a TH10 with fully upgraded troops and spells. yeah I would understand that, if not then let's start by checking your base.
Edit : I forgot to tell you, not because you have maxed your walls and defenses means you can avoid being 3 starred by TH10 attackers.

