I just finished up my computer sci degree, and I really enjoyed it. Like Catbug said though, most companies still want their development or IT team on site, although that could change due to the pandemic with people in the tech industry proving they can work from home. As for why the companies want their teams to come in, it becomes a lot easier to maintain security protocols when everyone’s on the same network and using devices issued by the company.
Not to mention working from home is kind of a lonely affair in all honesty. For some people, it works better for them. As an example, my partner was often able to get a full day’s worth of work done in a few hours because there was no one around to bug him. Whereas in my case, I definitely like going into an office because A) I like being able to easily talk things through with my team members if I have questions and B) I have a tendency to get easily distracted by various things, so being away from home helps me keep my focus on my work.