If you have many classes that all need to have the same functionality, you'd use a mixin to define that functionality.
There are two main situations where mixins are used:
You want to provide a lot of optional features for a class.
You want to use one particular feature in a lot of different classes.