That is because of your medal ranking and probably because you try to protect your TC. If you let players destroy your TC you get a treaty and only get 1 attack in 12 hours. Not a big deal. Also if you are lower medal lower players attack you. I am only IA and 100 stars all offense with level 9...