Why the "a" at the and.. I see sometimes язык and sometimes языка

why the “a” at the and… I see sometimes язык and sometimes языка