The design resource is part of the component bundle which is basically used for the benefit of admins. We use <design:attribute> to make lightning component attribute available for Admin to edit in Lightning Community/Lightning App Builder. With this Administrators can also change the component attributes as per client requirement.