DPI is a label, not resolution
An image is a grid of pixels; DPI tells printers and layout apps how many of those pixels make an inch, which sets the physical size at 100%. Changing it never changes the pixels or the quality. A 3000×2000 photo is 10×6.7 inches at 300 DPI and 41×28 inches at 72 DPI, and it is the same file either way.