The default mode for the Image Editor is View. To paint directly to the UV image you need to swap the mode from View to Paint.
In the Texture Paint Workspace, the Image Editor is already set to Paint.