How does it not make sense to you that you would share DNA with your first cousin?
For example, your first cousin is your mom's sister's kid.
Your mom and sister share DNA through their parents, meaning you share DNA with your aunt. Therefore, you would share DNA with your aunt's kid (your first cousin).
Each of those entries is a single person. The interface is saying that their grandmother is related to both their mother and their father. The most enlightening thing would be to see Grandma's account and how related she is to either of them. It should be 50% to their child, and it's likely a lot less for the other one.