Yes, Riga and Kaunas are around same distance to ล iauliai but there are really much more flight choices to Riga.
And it's probably easier to get there with public transport from Riga if you do not have the car or someone to come and get you. If you are cute, single and rich, I can come and get you from the airport ๐