Surface mount components are usually only glued when a wave soldering process would disturb them. Single and double sided SM boards can be reflow soldered with solder paste without glue.
The surface mount components on the top of the board won't need to be glued in place for the wave soldering process.
Also, there is now a process called selective soldering which often means that surface mount components on the bottom don't need to be glued down either.
The traditional wave is solder flowing over a weir that is wider than the board, and the bottom of the board touches that wave while the whole length of the board is moved across the wave.
In selective soldering there is a small nozzle with solder flowing out of it and down the sides. It's a weir that is circular, maybe 6 - 10 mm diameter. That is moved around (or the board is moved to it) and only brought in contact where the through-hole components have to be soldered. If there are no SM components on the underside that are close to the pins of the through-hole components, they'll stay in place fine with no glue.