Friction/traction is a function of contact area and weight.
Loss of friction is what causes sliding and spinning.
If there is enough water on the road and the tires can not force it out of the treads then the tire lifts off the road(hydroplanes) so contact area with the road is reduced and so friction is reduced.
The more weight there is the longer you will stay in contact with the road, the rear tires of a truck have less weight on them so will have less friction to start with, so will lose friction before the front tires, even on bone dry pavement.
You can add more weight to the rear tires, by adding weight behind the rear axle, sand or salt bags in the back of the bed, but they need to be secured, because if you do lose traction in the form of a sideways slide the added weight can shift making the slide hard to correct, you also don't want them coming thru the back window in a sudden stop

.
Tires that are made for heavy water conditions have straight grooves and treads that channel the water to these grooves to move the water out from under the tire.
"traction tires", ATs, do the opposite, they try to trap water, mud, snow, or any loose surface debris in the treads, that's what increases their traction, that's also what makes them noisy, they trap air too, lol.
Tire tread is always a trade off, wet/dry, loose/firm.
Then there are rubber compounds, cold/hot, lol.