Is it necessary to glue it down? I was thinking of just leaving it loose.
Of course, leave it loose! That's what the 1:1 guys do, and gravity still works great....even at 1:48. I plan to do this, too......but with some consideration of 'when is the best time to ballast?'...
Typically (club observations, layout construction by friends, How-To publications, etc.) ballasting model railroad track is done as soon as the track is down (and painted...sometimes) and before any scenery, structure installation, signals, under-table wiring work, etc. is done. In this case, Hot Water is right....it'll look like crap if not glued down as the layout progresses to completion. Also, if the table is prone to being bumped, walked on, jostled, transported,......whatever....well, I guess gluing the ballast is a no-brainer.
BUT...if the ballast is carefully and loosely applied after the layout has reached a fair degree of completion and will not be subject to a lot of subsequent jostling....except from passing Big Boys and 100-car trains ()...then leaving it loose, subject to periodic light maintenance (soft brush) can be a reasonable alternative.
And there are further upsides. If you ever plan to modify your trackwork....add/subtract a siding, replace a complete switch, eliminate a troublesome section (kinked rail/joint, sharp S-curve, etc.) it will be MUCH easier to remove/reclaim the loose ballast from the work area using a 'Dust-Buster'-type vacuum with a clean filter, make the changes to the track, replace/groom the ballast, done.
Here's an example... As I write this, there's another thread in the For Sale category offering some Ross switches that have been removed from a layout. They're apparently in working order. BUT, as the photos show and as further described, there is considerable ballast bonded to the ties of the switches. To remove this mess should the next owner have a different choice for ballasting altogether looks to be more work than I'd care to take on, IMHO. Oh, and by the way, while we're talking switches......applying glue to the ballast within these expensive electro-mechanical devices can become a nightmare if the glue migrates to parts that are supposed to freely move. Another reason to avoid ballast glue.
One of our long ago customers (LHS) had a reasonable compromise to the whole subject, though. He glued the ballast to the edges of the roadbed (beveled cork), but kept the glue away from track/switches altogether. After the ballast along the edges was dry, he'd follow up by applying a loose layer of ballast between the ties. It worked on his permanent layout. In fact he felt the glued edges helped to retain the loose layer between the ties. Modifications to the track were easy/clean/quick to re-ballast, he claimed.
In the end, though, it's a TEHO situation. People have favorites for everything in the hobby....colors, techniques, materials, etc.. Finding your own favorite is part of the hobby. We offer opinions, not rules.
KD