yunus, you are absolutely right.
But in song writing, sometimes they do that kind of stuff on purpose to
bring out a certain desired effect. Instead of saying "it doesn't
matter" they might say "it don't matter". Instead of saying "it
isn't right" they might say "it ain't right." You will here these
kind of things, especially in country songs or ghetto rap songs.