This is a good question. While there might not be a punishment for not showing up to work, when you get back you will have to make up the work that you missed in addition to the work that is due for the day. If the habit is kept up you may have consequences at work from HR. I would suggest not skipping work unless you are sick. It is best to communicate your needs and a day of flexibility if you have a personal event so your coworkers can plan around it. Remember, your work doesn't only affect you.
It's not a school so no punishments. :)
However when you don't show up for work, there should be a valid reason to do so. Because the work which you had to do yesterday will be in your backlog today as well. You're responsible for your work and sometimes a day off causes delay and more stressful situation. It doesn't mean you cannot take days off, if there's a legitimate reason to take a day off, there will not be any issue. It still shows your commitment towards work and your sense of responsibility towards your work.