Vias in pads are a big reliability risk for solder joints, if components are reflow soldered.
Often the solder is sucked from the pad through the via, causing a solder joint with less solder which becomes unreliable under thermal stress. Therefore vias in pads should be avoided or filled and capped.