Team/project assignments are random. If you get assigned a helpful, caring team and a project that is manageable and allows for good learning, you have a higher chance of getting a return offer and a more pleasant internship experience.
Your mentor dictates a lot of things. You might get assigned a mentor who just doesn't care about your growth and your project, or they are simply incapable or lack the bandwidth to care.
A lot of engineers seem stressed and busy, which makes you wonder if this is a good place to work full time.