It's directly borrowed from the Spanish word "ritmo," which itself comes from the Greek word "rhythmos."
Here are some examples of how "ritmo" is used in Tagalog:
* "Ang ritmo ng musika ay napakaganda." (The rhythm of the music is very beautiful.)
* "Mahalaga ang ritmo sa pagsayaw." (Rhythm is important in dancing.)
* "May iba't ibang ritmo ang mga tula." (Poems have different rhythms.)