Even though the treble clef is on the second row I play it with the left hand and why is the bass clef at the end?
The clef doesn't necessarily mean to tell you which hand to play with. It's there to make the music easy to play, compared with putting the notes on ledger lines. The bottom of the two staves is for your left hand to play. Just read it as if it's the notes you are used to playing with your right hand, except you play those with your left. When it goes back to bass clef, everything is normal again. The clef sign at the end of a line is to warn you that there's going to be a clef change, otherwise you'd be reading notes on lots of ledger lines and that's not easy.
In two-stave keyboard music, the RH generally plays the upper STAVE, LH the lower. It's quite possible for the music to be all above middle C, thus making treble clef appropriate for both hands. Similarly for music all below middle C and bass clef.
The bass clef at the end of the line is a warning that the LH is about to return to bass clef.
Though we sometimes loosely refer to treble clef as "the RH clef", this isn't strictly true. And, despite what I said above, it isn't ALWAYS "RH upper stave, LH lower stave".