Generally, cake shops put condensed milk when making cakes. It is a kind of dairy product, whose main function is to make the cake sweeter and increase the milk taste of the cake. If you make cakes at home without condensed milk, you can use milk instead.
Both condensed milk and milk are not necessary, that is, they are not essential ingredients. Many people are not used to the taste of milk or are allergic to it, so they can't throw it away. Cake can be made like this. As for the sweetness of the cake, more sugar can be used to improve it.