Does the concept of free will mean God shouldn't take credit for the good deeds people do?

Free will means we can all choose good and evil so why do we only give God credit when people do good?