The decision to take away electronics as a punishment for doing laundry at night instead of during the day is a matter of personal parenting style and household rules. Different families have different expectations and rules regarding chores and household responsibilities.
While it may seem strict or unfair to you, it's important to remember that parents often have their own reasons for establishing rules and enforcing consequences. It's possible that your parents have concerns about noise levels during nighttime, energy consumption, or other factors that led them to set a rule about doing laundry at specific times.
If you have concerns or feel that the punishment is disproportionate, it could be helpful to have a calm and respectful conversation with your parents. Try expressing your perspective and understanding their concerns as well. Open communication can often lead to a better understanding of each other's viewpoints and potentially finding a compromise or middle ground.
Remember that as you grow older, it's natural to seek more independence and have differing opinions from your parents. However, maintaining respectful communication and finding common ground can help navigate these situations more effectively.