They are not gnomes (those are from a different breed and role) but smånisser/småtomter/småfolk, they are part of very old Nordic traditions which people took very serious even today: you couldn't build in ceirtain places because the småfolk lives there