Only citizenship gives you the right to apply for a passport and be a European Union citizen. In contrast, temporary or permanent residence provides you with the right to legally stay in Latvia only and freely travel in Schengen zone.