You can't just look at enlisted pay broadly. You have to look at the troops that earn BAH and those who don't. Both are underpaid, but those who don't get BAH are inundated in very poor base services and are usually on the clock 24/7: https://veteran.com/2022-military-pay-charts/
Another point that I haven't seen brought up here is that usually the people who paint ships are school washouts. They couldn't get through school and have no classification, so this is what they do. I wasn't in the Navy but this is always what I heard.