A few years ago we had a garden hose hooked up to the campground water spigot laying in the, almost, 100 degree sunlight. Didn't think anything about what was going on, until a neighbor camper walked up and suggested we look at our hose. So we did.
Um, a section of about 3 feet blew up like a hot-air balloon. It had to be at least 12 inches in diameter! Before I could make it to the spigot to turn the water off .... she blew! Split long ways, about 6 inches and what a wonderful shower flow of HOT water! I'm glad I witnessed the event, I would have never believed it otherwise.
That was one of many events that ultimately led me to never leaving the water hose connected to the trailer and spigot and left on. That, and unknown pressure coming out of that spigot at every campground we go to, we now fill our fresh water tank, pump from the on-board water pump, and keep the campground spigot turned off, except to fill the fresh water tank.
So yea, sitting in the sun can cause pressure to build, but the risk of busting your garden hose is greater the hotter it gets.