Your main purpose is to serve the Lord and witness to others about Jesus Christ.
If you just go to church and only worry about your own salvation that is only half the message. Prayer is important but also witnessing to someone about Lord if he calls you to do so.