The phrase "You have to work at relationships" highlights the notion that successful relationships demand ongoing effort, communication, and compromise from all parties involved. It acknowledges that difficulties and conflicts are a natural part of any relationship.
The quote goes on to caution against a hasty response: "You can't just walk out on them every time something goes wrong." This suggests that ending a relationship abruptly when faced with problems may not always be the best solution. Instead, it encourages individuals to address issues, work through them, and learn and grow together.
In essence, this quote underscores the importance of resilience and commitment in relationships. It promotes the idea that enduring and meaningful connections require effort and a willingness to work through challenges rather than resorting to ending the relationship at the first sign of trouble.