Shipcest, age gaps, teacher x student, toxic relationships and other problematic elements are common in anime. manga and video games because they are fun and cool.

The creators put them there deliberately in order to make their stories spicier and more enjoyable.

Those bits are there for you to enjoy if you are reading/watching/playing!