Uncertain. Possibly from Old Tupi kopira (“farmer”).
Improve your pronunciation
Practice speaking and memorizing "caipira" and many other words and sentences in Portuguese.