Why did this departure from Buenos Aires seem to delay heading northeast? It was going from Argentina to Germany and after takeoff it went over a town and then it went direct to Germany. Why did it go over the town instead of going directly to Germany?

Source
It's following a departure procedure.



(chart source)

The path flown matches the route described for departing Runway 11 with the La Plata 6B departure.

See the map here to visually match up the described departure procedure with the flown path.