When a bowling ball hits a wall, is it doing work on the wall?
If the wall doesn’t move at all, no. Work requires both a force and a movement in the direction of that force. But in reality, the wall will certainly move at least a short distance. When it does, it moves in the direction of the force on it and the ball is doing work on the wall.