Why is this run in a goroutine?