When lillipup evolves into herdier it changes abilities, simple as that. Vital spirit goes to intimidate, pickup goes to sand rush, and run away becomes scrappy. Once it becomes stoutland, it keeps the ability from herdier. So to get a stoutland with sand rush go and get a lillipup with pickup and youre gud. <:D
Source